Skip to content
Extraits de code Groupes Projets
Valider 1991dce2 rédigé par Brieuc Dubois's avatar Brieuc Dubois
Parcourir les fichiers

Allow /tests without login

parent fc9c6a28
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
import { type ServerLoad, redirect } from '@sveltejs/kit';
const publicly_allowed = ['/login', '/register', '/tests/vocabulary', '/surveys'];
const publicly_allowed = ['/login', '/register', '/tests', '/surveys'];
const isPublic = (path: string) => {
for (const allowed of publicly_allowed) {
......
import { type ServerLoad, redirect } from '@sveltejs/kit';
const publicly_allowed = ['/login', '/register', '/tests/vocabulary', '/surveys'];
const publicly_allowed = ['/login', '/register', '/tests', '/surveys'];
const isPublic = (path: string) => {
for (const allowed of publicly_allowed) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter