feat(main): 支持单独的健康检查路由,不打印结果
Some checks failed
Egg Server MIflow / build-image (push) Failing after 30s
Some checks failed
Egg Server MIflow / build-image (push) Failing after 30s
This commit is contained in:
parent
c10e79db84
commit
e04ff660df
2
index.ts
2
index.ts
@ -29,6 +29,8 @@ const server = Bun.serve({
|
||||
if (exactCheck("/sheet")) return await manageSheetReq(ctx)
|
||||
// 小程序
|
||||
if (startsWithCheck("/micro_app")) return await manageMicroAppReq(ctx)
|
||||
// 健康检查
|
||||
if (fullCheck("/health")) return ctx.genResp.healthCheck()
|
||||
// 其他
|
||||
return ctx.genResp.ok("hello, there is egg, glade to serve you!")
|
||||
} catch (error: any) {
|
||||
|
10
package.json
10
package.json
@ -33,11 +33,11 @@
|
||||
"typescript": "^5.5.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@egg/hooks": "^1.1.0",
|
||||
"@egg/lark-msg-tool": "^1.1.0",
|
||||
"@egg/logger": "^1.2.1",
|
||||
"@egg/net-tool": "^1.2.1",
|
||||
"@egg/path-tool": "^1.2.1",
|
||||
"@egg/hooks": "^1.2.0",
|
||||
"@egg/lark-msg-tool": "^1.2.0",
|
||||
"@egg/logger": "^1.3.0",
|
||||
"@egg/net-tool": "^1.4.0",
|
||||
"@egg/path-tool": "^1.3.0",
|
||||
"node-schedule": "^2.1.1",
|
||||
"p-limit": "^6.1.0",
|
||||
"pocketbase": "^0.21.4",
|
||||
|
Loading…
x
Reference in New Issue
Block a user