diff --git a/backend/src/main.ts b/backend/src/main.ts index fddea63f6d855d7ab9abf3111d6bf5339cd6d5df..dc1e60f8690501f43f56d15e6b92f30c1812e729 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -2,7 +2,7 @@ import { NestFactory } from '@nestjs/core'; import { ConfigService } from '@nestjs/config'; import { AppModule } from './app.module'; import { ValidationPipe } from '@nestjs/common'; -import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; +import { DocumentBuilder, SwaggerCustomOptions, SwaggerModule } from '@nestjs/swagger'; async function bootstrap(): Promise<void> { const app = await NestFactory.create(AppModule); @@ -22,7 +22,10 @@ async function bootstrap(): Promise<void> { .addTag('categories') .build(); const swaggerDoc = SwaggerModule.createDocument(app, swaggerDocConfig); - SwaggerModule.setup('/', app, swaggerDoc); + const swaggerOptions: SwaggerCustomOptions = { + customSiteTitle: 'Movie Base API Docs' + } + SwaggerModule.setup('/', app, swaggerDoc, swaggerOptions); const port = configService.get<number>('PORT') | 4000; console.log(`NestJS server is listening on: http://localhost:${port}`);