From 24445677385e67fc6a68692209be69c8c7b63326 Mon Sep 17 00:00:00 2001 From: John Kirathe Date: Wed, 4 Sep 2024 23:48:00 +0300 Subject: [PATCH] added README.md --- netlify/functions/swaggerConfig.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 };