feat: add swagger

This commit is contained in:
2026-10-21 15:18:42 +03:00
parent a4b03c2a92
commit e20a5a4b4c
11 changed files with 666 additions and 42 deletions
+2
View File
@@ -6,6 +6,7 @@ import {
} from '@nestjs/platform-fastify';
import { AppModule } from './app.module';
import { configureApp } from './configure-app';
import { setupSwagger } from './docs/swagger';
async function bootstrap(): Promise<void> {
const app = await NestFactory.create<NestFastifyApplication>(
@@ -17,6 +18,7 @@ async function bootstrap(): Promise<void> {
);
configureApp(app);
setupSwagger(app);
app.enableShutdownHooks();
const host = process.env.APP_HOST ?? '0.0.0.0';