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 667382e commit 2444567
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions netlify/functions/swaggerConfig.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down Expand Up @@ -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
};

0 comments on commit 2444567

Please sign in to comment.