We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5232f8f commit e69dfb2Copy full SHA for e69dfb2
src/api/swagger.json
@@ -1,12 +1,12 @@
1
{
2
"swagger": "2.0",
3
- "host": "localhost:3000",
+ "host": "",
4
"info": {
5
"title": "",
6
"description": "",
7
"version": ""
8
},
9
- "basePath": "/api",
+ "basePath": "",
10
"consumes": [
11
"application/json"
12
],
src/loaders/swaggerLoader.ts
@@ -16,6 +16,8 @@ export const swaggerLoader: MicroframeworkLoader = (settings: MicroframeworkSett
16
description: env.app.description,
17
version: env.app.version,
18
};
19
+ swaggerFile.host = env.app.route;
20
+ swaggerFile.basePath = env.app.routePrefix;
21
22
expressApp.use(
23
env.swagger.route,
0 commit comments