Skip to content
Snippets Groups Projects
Commit c1231447 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

Merge branch 'feat/poc-pwa' into 'dev'

feat(routing): update global routing of api

See merge request web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_server!116
parents f953ed72 f7fd0113
No related branches found
No related tags found
3 merge requests!1251.14,!1171.13,!116feat(routing): update global routing of api
......@@ -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();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment