From a884fd64b77ecee6021ab83e7606ac6aac7567ad Mon Sep 17 00:00:00 2001 From: ademsuslu Date: Fri, 29 Nov 2024 00:49:38 +0300 Subject: [PATCH] refactor:middleware.ts in add payment --- middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware.ts b/middleware.ts index bd75825..e69ee2d 100644 --- a/middleware.ts +++ b/middleware.ts @@ -1,6 +1,6 @@ import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server' -const isProtectedRoute = createRouteMatcher(['/dashboard(.*)', '/customer(.*)', '/bussines(.*)', '/opportunity(.*)', '/employee(.*)', '/personal(.*)']) +const isProtectedRoute = createRouteMatcher(['/dashboard(.*)', '/customer(.*)', '/bussines(.*)', '/opportunity(.*)', '/employee(.*)', '/personal(.*)', '/payment(.*)']) export default clerkMiddleware(async (auth, req) => { if (isProtectedRoute(req)) await auth.protect()