randydev commited on
Commit
f74349a
·
verified ·
1 Parent(s): 7d77877

Update swagger.js

Browse files
Files changed (1) hide show
  1. swagger.js +8 -10
swagger.js CHANGED
@@ -1,18 +1,16 @@
1
  import swaggerJsDoc from 'swagger-jsdoc';
2
 
3
- const swaggerOptions = {
4
  definition: {
5
- //swagger: "2.0",
6
- // openapi: '3.1.0',
7
  info: {
8
- title: 'AkenoX API Js',
9
- // version: '1.2.0',
10
- description: 'API Description'
11
- }
12
  },
13
- apis: ['./routes/*.js'],
14
  };
15
 
16
- const swaggerDocs = swaggerJsDoc(swaggerOptions);
17
 
18
- export { swaggerDocs };
 
1
  import swaggerJsDoc from 'swagger-jsdoc';
2
 
3
+ const options = {
4
  definition: {
5
+ openapi: '3.0.0',
 
6
  info: {
7
+ title: 'AkenoXJS',
8
+ version: '1.0.0',
9
+ },
 
10
  },
11
+ apis: ['./src/routes*.js'],
12
  };
13
 
14
+ const openapiSpecification = swaggerJsdoc(options);
15
 
16
+ export { openapiSpecification };