This commit is contained in:
vastxie
2025-03-04 17:36:53 +08:00
parent cf7dc1d1e7
commit 1e9b9f7ba4
649 changed files with 23183 additions and 1925 deletions

View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSwagger = void 0;
const swagger_1 = require("@nestjs/swagger");
const swaggerOptions = new swagger_1.DocumentBuilder()
.setTitle('AIWeb Team api document')
.setDescription('AIWeb Team api document')
.setVersion('1.0.0')
.addBearerAuth()
.build();
function createSwagger(app) {
const document = swagger_1.SwaggerModule.createDocument(app, swaggerOptions);
swagger_1.SwaggerModule.setup('/swagger/docs', app, document);
}
exports.createSwagger = createSwagger;