diff --git a/src/main.ts b/src/main.ts index d4287f5015f44ad7e5e76f6ab93023cd41caf1d7..5f6620aa88a5e96980f4e3fb58039c8e0ded4bde 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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();