// docs/swaggerSpec.js
const swaggerJSDoc = require('swagger-jsdoc');

const options = {
  definition: {
    openapi: '3.0.0',
    info: {
      title: 'My API',
      version: '1.0.0',
    },
  },
  apis: ['./docs/*.js', './src/routes/*.js'], // <-- points to your annotated files
};

module.exports = swaggerJSDoc(options);
