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