From e475c5b2395f85eb1a1eb22e14a8f45b12ea9637 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Wed, 27 Aug 2025 09:56:44 +0200 Subject: [PATCH] fix: no auth possible --- middleware.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/middleware.ts b/middleware.ts index 1b7a44f..0165dff 100644 --- a/middleware.ts +++ b/middleware.ts @@ -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 (