Skip to content

Commit

Permalink
fix: unblock chat api route
Browse files Browse the repository at this point in the history
  • Loading branch information
stilt0n committed Dec 22, 2024
1 parent 8cb2479 commit d917b17
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
Expand Up @@ -5,7 +5,7 @@ const isWritePermissionRoute = createRouteMatcher([
'/edit-recipe(.*)',
]);

const isAdminPermissionRoute = createRouteMatcher(['/(api|trpc)(.*)']);
const isAdminPermissionRoute = createRouteMatcher(['/(trpc)(.*)']);

export default clerkMiddleware((auth, req) => {
if (isWritePermissionRoute(req)) {
Expand Down

0 comments on commit d917b17

Please sign in to comment.