@forklaunch/express 0.2.7 → 0.2.8
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
@@ -51,7 +51,7 @@ var Application = class extends import_http.ForklaunchExpressLikeApplication {
|
|
51
51
|
listen(...args) {
|
52
52
|
const port = typeof args[0] === "number" ? args[0] : Number(process.env.PORT);
|
53
53
|
this.internal.use(
|
54
|
-
`/api
|
54
|
+
`/api/${process.env.VERSION ?? "v1"}${process.env.DOCS_PATH ?? "/docs"}`,
|
55
55
|
import_swagger_ui_express.default.serve,
|
56
56
|
import_swagger_ui_express.default.setup(
|
57
57
|
(0, import_http.generateSwaggerDocument)(this.schemaValidator, port, this.routers)
|
package/lib/index.mjs
CHANGED
@@ -17,7 +17,7 @@ var Application = class extends ForklaunchExpressLikeApplication {
|
|
17
17
|
listen(...args) {
|
18
18
|
const port = typeof args[0] === "number" ? args[0] : Number(process.env.PORT);
|
19
19
|
this.internal.use(
|
20
|
-
`/api
|
20
|
+
`/api/${process.env.VERSION ?? "v1"}${process.env.DOCS_PATH ?? "/docs"}`,
|
21
21
|
swaggerUi.serve,
|
22
22
|
swaggerUi.setup(
|
23
23
|
generateSwaggerDocument(this.schemaValidator, port, this.routers)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@forklaunch/express",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.8",
|
4
4
|
"description": "Forklaunch framework for express.",
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
6
6
|
"bugs": {
|
@@ -30,8 +30,8 @@
|
|
30
30
|
"express": "^4.21.2",
|
31
31
|
"qs": "^6.14.0",
|
32
32
|
"swagger-ui-express": "^5.0.1",
|
33
|
-
"@forklaunch/validator": "0.4.4",
|
34
33
|
"@forklaunch/common": "0.2.1",
|
34
|
+
"@forklaunch/validator": "0.4.4",
|
35
35
|
"@forklaunch/core": "0.3.6"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|