const swaggerJsdoc = require("swagger-jsdoc"); const options = { definition: { openapi: "3.0.0", info: { title: "Thé Tip Top API", version: "1.0.0", description: "API du jeu concours Thé Tip Top", }, servers: [ { url: process.env.API_PUBLIC_URL || "http://localhost:5000", }, ], components: { securitySchemes: { bearerAuth: { type: "http", scheme: "bearer", bearerFormat: "JWT", }, }, }, }, apis: ["./src/routes/*.js"], }; module.exports = swaggerJsdoc(options);