feat: protect api routes and fetch user data from /api/profile

This commit is contained in:
Riccardo
2024-06-26 14:28:11 +02:00
parent d052cbef4c
commit 571ab92273
4 changed files with 35 additions and 19 deletions

View File

@@ -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']
};