2024-05-06 03:28:58 +00:00

15 lines
335 B
TypeScript

import { initSchedule } from "./schedule";
initSchedule()
Bun.serve({
async fetch(req) {
const url = new URL(req.url);
// 根路由
if (url.pathname === "/") return new Response("hello, glade to see you!");
if (url.pathname === '/ci') return new Response("OK")
return new Response("OK");
},
port: 3000,
});