mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-20 21:48:33 +02:00
feat: implement authentication middleware and configure Claude project permissions
This commit is contained in:
1 parent
b5bda8abf7
commit
acd30cfdea
2 files changed
+3
-2
No files matched your search
@@ -29,7 +29,8 @@
|
|||||||
"WebFetch(domain:collect.ffnancy.fr)",
|
"WebFetch(domain:collect.ffnancy.fr)",
|
||||||
"Bash(curl -s \"https://collect.ffnancy.fr/api/diag-mvtart\")",
|
"Bash(curl -s \"https://collect.ffnancy.fr/api/diag-mvtart\")",
|
||||||
"Read(//c/Users/Michael/VSCODE/CollectFlow/**)",
|
"Read(//c/Users/Michael/VSCODE/CollectFlow/**)",
|
||||||
"Bash(xargs wc:*)"
|
"Bash(xargs wc:*)",
|
||||||
|
"Bash(ls /c/Users/Michael/VSCODE/CollectFlow/.next/static/chunks/*.css)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -9,7 +9,7 @@ export default auth((req) => {
|
|||||||
const { nextUrl } = req;
|
const { nextUrl } = req;
|
||||||
|
|
||||||
const isApiAuthRoute = nextUrl.pathname.startsWith("/api/auth");
|
const isApiAuthRoute = nextUrl.pathname.startsWith("/api/auth");
|
||||||
const isPublicRoute = nextUrl.pathname === "/login" || nextUrl.pathname.startsWith("/public");
|
const isPublicRoute = nextUrl.pathname === "/login" || nextUrl.pathname.startsWith("/public/");
|
||||||
|
|
||||||
// 1. Laisser passer les requêtes d'auth API
|
// 1. Laisser passer les requêtes d'auth API
|
||||||
if (isApiAuthRoute) return NextResponse.next();
|
if (isApiAuthRoute) return NextResponse.next();
|
||||||
|
|||||||
Reference in new issue
Block a user