Update _worker.js

This commit is contained in:
Sliverkiss
2024-12-10 15:37:45 +08:00
committed by GitHub
parent a94a33f21e
commit d8d8378fa2

View File

@@ -8,7 +8,6 @@ async function handleRequest(request) {
const url = new URL(request.url);
if (url.pathname === "/query/hello"&&request.method=="GET") {
if(!requestBody?.data) throw new Error("body缺少所需要的data");
return jsonResponse({result:"Hello World"}, 200);
}