fix: 루트 경로 X-Service-Code 미들웨어 차단 해제 (#255)
All checks were successful
SPMS_API/pipeline/head This commit looks good

Reviewed-on: https://git.ipstein.myds.me/SPMS/SPMS_API/pulls/256
This commit is contained in:
김선규 2026-02-26 06:06:42 +00:00
commit acfa988c43

View File

@ -15,7 +15,9 @@ public class ServiceCodeMiddleware
var path = context.Request.Path;
// === SKIP: X-Service-Code 불필요 ===
if (path.StartsWithSegments("/v1/out") ||
if (path == "/" ||
!path.StartsWithSegments("/v1") ||
path.StartsWithSegments("/v1/out") ||
path.StartsWithSegments("/v1/in/auth") ||
path.StartsWithSegments("/v1/in/account") ||
path.StartsWithSegments("/v1/in/public") ||