From a9664172acab729f7e6095340373c3e8f731f958 Mon Sep 17 00:00:00 2001 From: Vechtomov Date: Fri, 13 Jan 2023 23:18:01 +0300 Subject: [PATCH] add protected routes --- website/src/middleware.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/website/src/middleware.ts b/website/src/middleware.ts index d1cd6801..21eeaaa7 100644 --- a/website/src/middleware.ts +++ b/website/src/middleware.ts @@ -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*", + ], };