공통코드 조회기능 추가

This commit is contained in:
JIeunhuh
2025-05-29 16:15:38 +09:00
parent 982c4124bc
commit 6911d5cab4
4 changed files with 16 additions and 4 deletions
+2 -1
View File
@@ -29,7 +29,7 @@ export function middleware(req: NextRequest) {
return NextResponse.rewrite(new URL(newUrl));
}
if (pathname.startsWith("/attach-service")) {
if (pathname.startsWith("/attach-service") || pathname.startsWith("/cms-service")) {
const requestHeaders = new Headers(req.headers);
const token = req.cookies.get(CLAIM_NAME)?.value;
const userId = req.cookies.get(AUTH_USER_ID)?.value;
@@ -67,5 +67,6 @@ export const config = {
"/geoserver/:path*",
"/attach-service/:path*",
"/user-service/:path*",
"/cms-service/:path*",
],
};