@uns-kit/api 2.0.7 → 2.0.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/dist/uns-api-proxy.js +4 -3
- package/package.json +2 -2
package/dist/uns-api-proxy.js
CHANGED
|
@@ -382,8 +382,8 @@ export default class UnsApiProxy extends UnsProxy {
|
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
registerHealthEndpoint() {
|
|
385
|
-
const
|
|
386
|
-
this.app.router.get(
|
|
385
|
+
const routePath = "/status";
|
|
386
|
+
this.app.router.get(routePath, (_req, res) => {
|
|
387
387
|
res.json({
|
|
388
388
|
alive: true,
|
|
389
389
|
processName: this.processName,
|
|
@@ -397,7 +397,8 @@ export default class UnsApiProxy extends UnsProxy {
|
|
|
397
397
|
});
|
|
398
398
|
if (this.app.swaggerSpec) {
|
|
399
399
|
this.app.swaggerSpec.paths = this.app.swaggerSpec.paths || {};
|
|
400
|
-
this.
|
|
400
|
+
const swaggerPath = `${this.apiBasePrefix}${routePath}`.replace(/\/{2,}/g, "/");
|
|
401
|
+
this.app.swaggerSpec.paths[swaggerPath] = {
|
|
401
402
|
get: {
|
|
402
403
|
summary: "Health status",
|
|
403
404
|
responses: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uns-kit/api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "Express-powered API gateway plugin for UnsProxyProcess with JWT/JWKS support.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"cookie-parser": "^1.4.7",
|
|
36
36
|
"express": "^5.1.0",
|
|
37
37
|
"multer": "^2.0.2",
|
|
38
|
-
"@uns-kit/core": "2.0.
|
|
38
|
+
"@uns-kit/core": "2.0.8"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/jsonwebtoken": "^9.0.10",
|