Update swagger.js
Browse files- swagger.js +8 -10
swagger.js
CHANGED
@@ -1,18 +1,16 @@
|
|
1 |
import swaggerJsDoc from 'swagger-jsdoc';
|
2 |
|
3 |
-
const
|
4 |
definition: {
|
5 |
-
|
6 |
-
// openapi: '3.1.0',
|
7 |
info: {
|
8 |
-
title: '
|
9 |
-
|
10 |
-
|
11 |
-
}
|
12 |
},
|
13 |
-
apis: ['./routes
|
14 |
};
|
15 |
|
16 |
-
const
|
17 |
|
18 |
-
export {
|
|
|
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 };
|