From 1b71dc77760f0ce7fb61efb5d83816ef8c473d4d Mon Sep 17 00:00:00 2001 From: Abdul Rahman Reza Date: Fri, 29 Nov 2024 15:37:04 +0700 Subject: [PATCH] update swagger & ssl turn off --- config/stag.json | 2 +- src/helpers/express/swagger.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/stag.json b/config/stag.json index c041fe0..f6ffe57 100644 --- a/config/stag.json +++ b/config/stag.json @@ -14,7 +14,7 @@ "morgan": "combined", "cors": "*", "ssl": { - "enable": true, + "enable": false, "cert": "/etc/letsencrypt/live/bri-dev.shiblysolution.id/fullchain.pem", "key": "/etc/letsencrypt/live/bri-dev.shiblysolution.id/privkey.pem" } diff --git a/src/helpers/express/swagger.ts b/src/helpers/express/swagger.ts index afe96c1..0ef51d2 100644 --- a/src/helpers/express/swagger.ts +++ b/src/helpers/express/swagger.ts @@ -9,6 +9,6 @@ export class SwaggerHelper { explorer: false, }; - app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument, options)); + app.use('/api/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument, options)); } } \ No newline at end of file