@stacksjs/router 0.58.66 → 0.58.68
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/index.js +1 -1
- package/package.json +1 -1
- package/src/router.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -825,7 +825,7 @@ class Router {
|
|
|
825
825
|
async health() {
|
|
826
826
|
const healthModule = await import(path2.userActionsPath("HealthAction.ts"));
|
|
827
827
|
const callback = healthModule.default.handle;
|
|
828
|
-
this.addRoute("GET", "/api/
|
|
828
|
+
this.addRoute("GET", "/api/health", callback, 200);
|
|
829
829
|
return this;
|
|
830
830
|
}
|
|
831
831
|
async job(path5) {
|
package/package.json
CHANGED
package/src/router.ts
CHANGED
|
@@ -66,7 +66,7 @@ export class Router implements RouterInterface {
|
|
|
66
66
|
const healthModule = await import(p.userActionsPath('HealthAction.ts'))
|
|
67
67
|
const callback = healthModule.default.handle
|
|
68
68
|
|
|
69
|
-
this.addRoute('GET', '/api/
|
|
69
|
+
this.addRoute('GET', '/api/health', callback, 200)
|
|
70
70
|
return this
|
|
71
71
|
}
|
|
72
72
|
|