feat(GOV-009): 建立后端契约与健康检查
This commit is contained in:
@@ -18,6 +18,7 @@ interface BootstrapApiOptions {
|
||||
|
||||
export async function bootstrapApi(options: BootstrapApiOptions): Promise<INestApplication> {
|
||||
const app = await NestFactory.create(ApiModule, { logger: options.logger });
|
||||
app.setGlobalPrefix('api/v1');
|
||||
app.enableShutdownHooks();
|
||||
await app.listen(options.port ?? options.config.api.port, options.config.api.host);
|
||||
return app;
|
||||
|
||||
Reference in New Issue
Block a user