From 029011d4cd7680482d6d541e9b27a994a3e84cb1 Mon Sep 17 00:00:00 2001 From: John Kirathe Date: Thu, 5 Sep 2024 00:03:11 +0300 Subject: [PATCH] added README.md --- netlify/functions/swaggerConfig.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/netlify/functions/swaggerConfig.js b/netlify/functions/swaggerConfig.js index dc01d78..23d6d0f 100644 --- a/netlify/functions/swaggerConfig.js +++ b/netlify/functions/swaggerConfig.js @@ -1,9 +1,14 @@ import path from 'path'; import { fileURLToPath } from 'url'; +console.log('import.meta.url:', import.meta.url); + const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); +console.log('__filename:', __filename); +console.log('__dirname:', __dirname); + export const swaggerOptions = { swaggerDefinition: { openapi: '3.0.0', @@ -33,5 +38,5 @@ export const swaggerOptions = { ], }, apis: [path.join(__dirname, './api.js')], // Path to the API docs - // apis: ['./routes/*.js'], // Path to the API docs }; +