fix: no auth possible
This commit is contained in:
@@ -9,7 +9,8 @@ export function middleware(request: NextRequest) {
|
||||
const publicPaths = ["/login"];
|
||||
|
||||
// Pages API qui ne nécessitent pas d'authentification
|
||||
const publicApiPaths = ["/api/teams"];
|
||||
const publicApiPaths = ["/api/teams", "/api/auth"];
|
||||
console.log(pathname);
|
||||
|
||||
// Vérifier si c'est une route publique
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user