From 5903c7ee94e07fec36e87de4b49142bd4c8f86f5 Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Fri, 9 Aug 2024 01:11:54 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E9=80=BB=E8=BE=91=20&=20=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index ae67950..8cf7849 100644 --- a/index.ts +++ b/index.ts @@ -12,10 +12,10 @@ const PREFIX = "/gitlab_monitor" const server = Bun.serve({ async fetch(req) { try { - // 打印当前路由 - console.log("🚀 ~ serve ~ req.url", req.url) // 路由处理 const { exactCheck } = makeCheckPathTool(req.url, PREFIX) + // 非根路径 + if (!exactCheck("/")) console.log("🚀 ~ serve ~ req.url", req.url) // CI 监控 if (exactCheck("/ci")) return manageCIMonitorReq(req) // Gitlab 事件