/
home
/
infinitibizsol
/
.trash
/
dist
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/dist/swagger.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.specs = void 0; Object.defineProperty(exports, "swaggerUi", { enumerable: true, get: function get() { return _swaggerUiExpress["default"]; } }); var _swaggerJsdoc = _interopRequireDefault(require("swagger-jsdoc")); var _swaggerUiExpress = _interopRequireDefault(require("swagger-ui-express")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } /* import swaggerJsDoc from "swagger-jsdoc"; import swaggerUi from "swagger-ui-express"; // Basic metadata about the API const options = { definition: { openapi: "3.0.0", info: { title: "INSUR-CRM API", version: "1.0.0", description: "A simple Express insure-crm Management API", }, servers: [ { url: "http://localhost:3000", }, ], }, apis: ["./routes/*.js", "./docs/*.js"], // Files containing annotations }; const specs = swaggerJsDoc(options); export { swaggerUi, specs }; */ // Basic metadata about the API var options = { definition: { openapi: "3.0.0", info: { title: "INSUR-CRM API", version: "1.0.0", description: "A simple Express insure-crm Management API" }, servers: [{ url: "http://localhost:".concat(process.env.PORT) }], components: { securitySchemes: { // Basic Auth /* basicAuth: { type: "http", scheme: "basic", }, */ // Bearer Auth (JWT) bearerAuth: { type: "http", scheme: "bearer", bearerFormat: "JWT" } } }, security: [ // Apply globally, can be overridden at the path level { // basicAuth: [], // For Basic Authentication // Alternatively, use bearerAuth if using JWT bearerAuth: [] }] }, apis: ["./routes/*.js", "./docs/*.js"] // Files containing annotations }; var specs = exports.specs = (0, _swaggerJsdoc["default"])(options);
Copyright ©2k19 -
Hexid
|
Tex7ure