Skip to content
Snippets Groups Projects

feat(routing): update global routing of api

Merged Hugo SUBTIL requested to merge feat/poc-pwa into dev
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
@@ -7,13 +7,14 @@ async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.useGlobalPipes(new ValidationPipe());
const options = new DocumentBuilder()
.setTitle('RAM')
.setDescription('RAM API description')
.setTitle(`Res'in`)
.setDescription(`Res'in API documentation`)
.setVersion('1.0')
.addBearerAuth({ type: 'http', scheme: 'bearer', bearerFormat: 'JWT' }, 'JWT')
.build();
const document = SwaggerModule.createDocument(app, options);
SwaggerModule.setup('api', app, document);
SwaggerModule.setup('doc', app, document);
app.setGlobalPrefix('api');
await app.listen(3000);
}
bootstrap();
Loading