SWAGGER_ROUTE
This commit is contained in:
parent
934387cef7
commit
0af9d66d75
@ -12,7 +12,7 @@ async function bootstrap() {
|
||||
.setVersion('1.0')
|
||||
.build();
|
||||
const document = SwaggerModule.createDocument(app, config);
|
||||
SwaggerModule.setup('api', app, document);
|
||||
SwaggerModule.setup(process.env.SWAGGER_ROUTE, app, document);
|
||||
|
||||
app.useGlobalPipes(new ValidationPipe({ whitelist: true }));
|
||||
await app.listen(process.env.API_PORT);
|
||||
|
Loading…
Reference in New Issue
Block a user