调试vercel

This commit is contained in:
huangxd- committed 2025-09-12 19:03:00 +08:00
1 parent c3dafe6d9e
commit 2ea9f06a91
1 file changed
+5
+5
View File
@@ -229,6 +229,11 @@ async function handleRequest(req, env) {
// 移除 token 部分,剩下的才是真正的路径
path = "/" + parts.slice(1).join("/");
return jsonResponse(
{ errorCode: 401, token: token, errorMessage: "/" + parts.slice(1).join("/") },
401
);
// GET /api/v2/search/anime
if (path === "/api/v2/search/anime" && method === "GET") {
return searchAnime(url);