feat: 更新path
This commit is contained in:
parent
bc441827ec
commit
f25c9aaa37
5
index.ts
5
index.ts
@ -25,8 +25,11 @@ scheduleJob("*/15 * * * *", main);
|
||||
scheduleJob("0 10 * * 5", manageRobot.sendRobotMsg);
|
||||
|
||||
Bun.serve({
|
||||
async fetch() {
|
||||
async fetch(req) {
|
||||
const url = new URL(req.url);
|
||||
if (url.pathname === '/ci') {
|
||||
await manageRobot.sendRobotMsg();
|
||||
}
|
||||
return new Response("OK");
|
||||
},
|
||||
port: 3000,
|
||||
|
Loading…
x
Reference in New Issue
Block a user