diff --git a/netlify/functions/swaggerConfig.js b/netlify/functions/swaggerConfig.js index 9d6fe9e..97c0d23 100644 --- a/netlify/functions/swaggerConfig.js +++ b/netlify/functions/swaggerConfig.js @@ -1,8 +1,8 @@ -// import path from 'path'; -// import { fileURLToPath } from 'url'; +import path from 'path'; +import { fileURLToPath } from 'url'; -// const __filename = fileURLToPath(import.meta.url); -// const __dirname = path.dirname(__filename); +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); export const swaggerOptions = { swaggerDefinition: { @@ -32,6 +32,6 @@ export const swaggerOptions = { }, ], }, - // apis: [path.join(__dirname, './app.js')], // Path to the API docs - apis: ['./routes/*.js'], // Path to the API docs + apis: [path.join(__dirname, './app.js')], // Path to the API docs + // apis: ['./routes/*.js'], // Path to the API docs };