소스 검색

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

vidane 6 달 전
부모
커밋
a7772f0a67
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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*"],
 };