feat: 更新path
All checks were successful
CI Monitor CI/CD / build-image (push) Successful in 24s
CI Monitor CI/CD / deploy (push) Successful in 14s

This commit is contained in:
zhaoyingbo 2024-03-08 10:03:58 +08:00
parent bc441827ec
commit f25c9aaa37

View File

@ -25,8 +25,11 @@ scheduleJob("*/15 * * * *", main);
scheduleJob("0 10 * * 5", manageRobot.sendRobotMsg); scheduleJob("0 10 * * 5", manageRobot.sendRobotMsg);
Bun.serve({ Bun.serve({
async fetch() { async fetch(req) {
await manageRobot.sendRobotMsg(); const url = new URL(req.url);
if (url.pathname === '/ci') {
await manageRobot.sendRobotMsg();
}
return new Response("OK"); return new Response("OK");
}, },
port: 3000, port: 3000,