fix: protect correct routes
This commit is contained in:
@@ -3,5 +3,5 @@ import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/edge';
|
|||||||
export default withMiddlewareAuthRequired();
|
export default withMiddlewareAuthRequired();
|
||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
matcher: ['/api/:path*', '/module/:path*', '/user']
|
matcher: ['/api/protected/:path*', '/module/:path*', '/user']
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user