From 33d83c208897b35ac30a95243ba5f33e2001b840 Mon Sep 17 00:00:00 2001 From: Matheus Coitinho Date: Thu, 31 Jul 2025 13:54:09 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20habilita=20coment=C3=A1rios=20no=20Babel?= =?UTF-8?q?=20e=20ajusta=20rota=20de=20documenta=C3=A7=C3=A3o=20Swagger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .babelrc | 2 +- src/app.js | 2 +- src/config/swagger.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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', ], };