@forklaunch/hyper-express 0.2.7 → 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 CHANGED
@@ -119,7 +119,7 @@ var Application = class extends import_http.ForklaunchExpressLikeApplication {
119
119
 
120
120
  ${err.message}`);
121
121
  });
122
- const swaggerPath = `/api${process.env.VERSION ?? "/v1"}${process.env.SWAGGER_PATH ?? "/swagger"}`;
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${process.env.VERSION ?? "/v1"}${process.env.SWAGGER_PATH ?? "/swagger"}`;
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.7",
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": {