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 9939aeb commit efb25a1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 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';
//
// const __filename = fileURLToPath(import.meta.url);
// const __dirname = path.dirname(__filename);
import path from 'path';
import { fileURLToPath } from 'url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

export const swaggerOptions = {
swaggerDefinition: {
Expand All @@ -14,7 +14,7 @@ export const swaggerOptions = {
},
servers: [
{
url: 'http://localhost:3500',
url: 'https://mockit-server.netlify.app',
},
],
components: {
Expand All @@ -32,6 +32,6 @@ export const swaggerOptions = {
},
],
},
apis: ['./api.js'], // Path to the API docs
apis: [path.join(__dirname, './api.js')], // Path to the API docs
// apis: ['./routes/*.js'], // Path to the API docs
};

0 comments on commit efb25a1

Please sign in to comment.