forked from mtusi2026/mtusi2026lab2
feat: add swagger
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user