diff --git a/.babelrc b/.babelrc index 41e3e571..b0fb7e55 100644 --- a/.babelrc +++ b/.babelrc @@ -23,7 +23,7 @@ ], "@babel/plugin-proposal-class-properties" ], - "comments": false, + "comments": true, "sourceMaps": "inline", "ignore": [ "**/*.d.ts" diff --git a/src/app.js b/src/app.js index 7e87135b..450733a2 100644 --- a/src/app.js +++ b/src/app.js @@ -13,7 +13,7 @@ import routes from './routes'; const app = express(); app.use(cors()); -app.use('/api/docs', swaggerUi.serve, swaggerUi.setup(swaggerSpec)); +app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerSpec)); app.use(parser.json()); app.use(morgan('dev')); diff --git a/src/config/swagger.js b/src/config/swagger.js index 42431ef5..0c295cd5 100644 --- a/src/config/swagger.js +++ b/src/config/swagger.js @@ -105,6 +105,7 @@ const options = { }, apis: [ './src/routes/*.js', + './dist/routes/*.js', ], };