feat(main): 支持单独的健康检查路由,不打印结果
Some checks failed
Egg Server MIflow / build-image (push) Failing after 30s

This commit is contained in:
zhaoyingbo 2024-08-21 02:17:38 +00:00
parent c10e79db84
commit e04ff660df
3 changed files with 7 additions and 5 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -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) {

View File

@ -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",