Skip to content

Commit

Permalink
refactor:middleware.ts in add payment
Browse files Browse the repository at this point in the history
  • Loading branch information
ademsuslu committed Nov 28, 2024
1 parent 7c72d63 commit a884fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit a884fd6

Please sign in to comment.