Skip to content

Commit

Permalink
added README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkirathe committed Sep 4, 2024
1 parent efb25a1 commit 029011d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion netlify/functions/swaggerConfig.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -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
};

0 comments on commit 029011d

Please sign in to comment.