From b6d8dc0bd6d6c59d3f56900b0aea59e9e79e648a Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Fri, 21 Feb 2025 11:51:24 -0500 Subject: [PATCH] wip (#19446) --- apps/web/middleware.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts index c0aa834c7a..34d6cc812e 100644 --- a/apps/web/middleware.ts +++ b/apps/web/middleware.ts @@ -16,7 +16,7 @@ const safeGet = async (key: string): Promise => { } }; -export const POST_METHODS_ALLOWED_API_ROUTES = ["/api/auth/signup", "/api/trpc"]; +export const POST_METHODS_ALLOWED_API_ROUTES = ["/api"]; // Some app routes are allowed because "revalidatePath()" is used to revalidate the cache for them export const POST_METHODS_ALLOWED_APP_ROUTES = ["/settings/my-account/general"]; @@ -194,6 +194,10 @@ export const config = { "/booking/:path*", "/payment/:path*", "/routing-forms/:path*", + "/team/:path*", + "/org/:path*", + "/:user/:type/", + "/:user/", ], };