mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-30 16:40:05 +08:00
Merge pull request #689 from Vechtomov/protected-routes
Add protected routes
This commit is contained in:
@@ -4,5 +4,15 @@ export { default } from "next-auth/middleware";
|
||||
* Guards these pages and redirects them to the sign in page.
|
||||
*/
|
||||
export const config = {
|
||||
matcher: ["/create/:path*", "/evaluate/:path*", "/label/:path*", "/account/:path*", "/dashboard", "/admin/:path*"],
|
||||
matcher: [
|
||||
"/create/:path*",
|
||||
"/evaluate/:path*",
|
||||
"/label/:path*",
|
||||
"/account/:path*",
|
||||
"/dashboard",
|
||||
"/admin/:path*",
|
||||
"/tasks/:path*",
|
||||
"/leaderboard",
|
||||
"/messages/:path*",
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user