Ver Fonte

feat(middleware): add API route matcher to middleware configuration

vidane há 6 meses atrás
pai
commit
a7772f0a67
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      middleware.ts

+ 1 - 1
middleware.ts

@@ -5,5 +5,5 @@ export default function middleware(request: Request) {
 }
 
 export const config = {
-  matcher: ["/files/:path*", "/api-docs/:path*"],
+  matcher: ["/files/:path*", "/api-docs/:path*", "/api/:path*"],
 };