调试vercel
This commit is contained in:
1 parent
c3dafe6d9e
commit
2ea9f06a91
1 file changed
+5
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user