feat: 更新非健康检查路由的日志打印信息
All checks were successful
Egg Server MIflow / build-image (push) Successful in 42s
All checks were successful
Egg Server MIflow / build-image (push) Successful in 42s
This commit is contained in:
parent
b963699c67
commit
d65048c372
4
index.ts
4
index.ts
@ -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)
|
||||
// 消息代理发送
|
||||
|
Loading…
x
Reference in New Issue
Block a user