From 0f6e8dc345fd70293968235c7e199864c85a60ed Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Sat, 14 Jun 2025 23:42:14 +0700 Subject: [PATCH] fix(api): exclude auth path in global prefix --- apps/api/src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index 06138fecc..b7d15bf76 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -43,7 +43,9 @@ async function bootstrap() { defaultVersion: '1', type: VersioningType.URI }); - app.setGlobalPrefix('api', { exclude: ['sitemap.xml'] }); + app.setGlobalPrefix('api', { + exclude: ['sitemap.xml', '/:lang/auth/*wildcard'] + }); app.useGlobalPipes( new ValidationPipe({ forbidNonWhitelisted: true,