mirror of
https://github.com/Sliverkiss/GoodNight.git
synced 2025-12-21 01:04:38 +08:00
Update _worker.js
This commit is contained in:
@@ -8,7 +8,6 @@ async function handleRequest(request) {
|
|||||||
const url = new URL(request.url);
|
const url = new URL(request.url);
|
||||||
|
|
||||||
if (url.pathname === "/query/hello"&&request.method=="GET") {
|
if (url.pathname === "/query/hello"&&request.method=="GET") {
|
||||||
if(!requestBody?.data) throw new Error("body缺少所需要的data");
|
|
||||||
return jsonResponse({result:"Hello World"}, 200);
|
return jsonResponse({result:"Hello World"}, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user