Merge pull request 'main' (#11) from s.hajizadeh/esg:main into main

Reviewed-on: Shared/esg#11
This commit is contained in:
2026-07-05 12:12:13 +03:30

View File

@@ -59,7 +59,9 @@ async function bootstrap(): Promise<void> {
}),
);
const swaggerConfig = new DocumentBuilder()
const baseUrlProd = process.env.BASE_URL_PROD;
const documentBuilder = new DocumentBuilder()
.setTitle('External Services Gateway')
.setDescription(
'Unified gateway for external inquiry providers with JWT authentication, RBAC, ' +
@@ -67,8 +69,13 @@ async function bootstrap(): Promise<void> {
)
.setVersion('1.0')
.addServer("http://localhost:8085")
.addServer("https://apex.mic.co.ir/esg/api")
.addServer(process.env.BASE_URL_PROD)
.addServer("https://apex.mic.co.ir/esg/api");
if (baseUrlProd) {
documentBuilder.addServer(baseUrlProd);
}
const swaggerConfig = documentBuilder
.addBearerAuth(
{ type: 'http', scheme: 'bearer', bearerFormat: 'JWT', in: 'header' },
'bearer',