feat: 更新非健康检查路由的日志打印信息
All checks were successful
Egg Server MIflow / build-image (push) Successful in 42s

This commit is contained in:
zhaoyingbo 2024-08-22 01:41:19 +00:00
parent b963699c67
commit d65048c372

View File

@ -19,8 +19,8 @@ const server = Bun.serve({
const { exactCheck, startsWithCheck, fullCheck } = makeCheckPathTool(
req.url
)
// 非根路由打印
if (!fullCheck("/")) ctx.logger.info(`${req.method} ${req.url}`)
// 非健康检查由打印
if (!fullCheck("/health")) ctx.logger.info(`${req.method} ${req.url}`)
// 机器人
if (exactCheck("/bot")) return await manageBotReq(ctx)
// 消息代理发送