feat: 更新path
This commit is contained in:
parent
bc441827ec
commit
f25c9aaa37
7
index.ts
7
index.ts
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user