Browse Source

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

vidane 6 tháng trước cách đây
mục cha
commit
a7772f0a67
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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*"],
 };