diff --git a/SPMS.API/Middlewares/ServiceCodeMiddleware.cs b/SPMS.API/Middlewares/ServiceCodeMiddleware.cs index f582ba1..2fc5313 100644 --- a/SPMS.API/Middlewares/ServiceCodeMiddleware.cs +++ b/SPMS.API/Middlewares/ServiceCodeMiddleware.cs @@ -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") ||