refactor: no XHR for currentUser but backside

This commit is contained in:
Julien Froidefond
2025-08-25 21:47:15 +02:00
parent 5e1e06be47
commit 565fde2808
5 changed files with 45 additions and 120 deletions

View File

@@ -9,7 +9,7 @@ export function middleware(request: NextRequest) {
const publicPaths = ["/login"];
// Pages API qui ne nécessitent pas d'authentification
const publicApiPaths = ["/api/auth", "/api/teams"];
const publicApiPaths = ["/api/teams"];
// Vérifier si c'est une route publique
if (