Browse Source

fix(api): exclude auth path in global prefix

pr/4926
KenTandrian 2 weeks ago
parent
commit
0f6e8dc345
  1. 4
      apps/api/src/main.ts

4
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,

Loading…
Cancel
Save