@forklaunch/hyper-express 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
@@ -119,7 +119,7 @@ var Application = class extends import_http.ForklaunchExpressLikeApplication {
|
|
119
119
|
|
120
120
|
${err.message}`);
|
121
121
|
});
|
122
|
-
const swaggerPath = `/api
|
122
|
+
const swaggerPath = `/api/${process.env.VERSION ?? "v1"}${process.env.DOCS_PATH ?? "/docs"}`;
|
123
123
|
this.internal.use(swaggerPath, swaggerRedirect(swaggerPath));
|
124
124
|
this.internal.get(
|
125
125
|
`${swaggerPath}/*`,
|
package/lib/index.mjs
CHANGED
@@ -85,7 +85,7 @@ var Application = class extends ForklaunchExpressLikeApplication {
|
|
85
85
|
|
86
86
|
${err.message}`);
|
87
87
|
});
|
88
|
-
const swaggerPath = `/api
|
88
|
+
const swaggerPath = `/api/${process.env.VERSION ?? "v1"}${process.env.DOCS_PATH ?? "/docs"}`;
|
89
89
|
this.internal.use(swaggerPath, swaggerRedirect(swaggerPath));
|
90
90
|
this.internal.get(
|
91
91
|
`${swaggerPath}/*`,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@forklaunch/hyper-express",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.9",
|
4
4
|
"description": "Forklaunch framework for hyper-express.",
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
6
6
|
"bugs": {
|
@@ -33,8 +33,8 @@
|
|
33
33
|
"swagger-ui-dist": "^5.18.3",
|
34
34
|
"swagger-ui-express": "^5.0.1",
|
35
35
|
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.44.0",
|
36
|
-
"@forklaunch/core": "0.3.6",
|
37
36
|
"@forklaunch/common": "0.2.1",
|
37
|
+
"@forklaunch/core": "0.3.6",
|
38
38
|
"@forklaunch/validator": "0.4.4"
|
39
39
|
},
|
40
40
|
"devDependencies": {
|