19 lines
780 B
JavaScript
19 lines
780 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const core_1 = require("@nestjs/core");
|
|
const app_module_1 = require("./app.module");
|
|
const swagger_1 = require("@nestjs/swagger");
|
|
async function bootstrap() {
|
|
const app = await core_1.NestFactory.create(app_module_1.AppModule);
|
|
const config = new swagger_1.DocumentBuilder()
|
|
.setTitle('API DCB / SMS / Payment')
|
|
.setDescription('Documentation des endpoints mock Orange DCB')
|
|
.setVersion('1.0')
|
|
.addBearerAuth()
|
|
.build();
|
|
const document = swagger_1.SwaggerModule.createDocument(app, config);
|
|
swagger_1.SwaggerModule.setup('api-docs', app, document);
|
|
await app.listen(process.env.PORT ?? 3000);
|
|
}
|
|
bootstrap();
|
|
//# sourceMappingURL=main.js.map
|