fix: clarify go version for testing

This commit is contained in:
Geun-Oh
2024-03-29 01:31:56 +09:00
parent 4798a58e02
commit 154e15008a
2 changed files with 17 additions and 7 deletions

View File

@@ -6,6 +6,10 @@ export default { async fetch(Request, env) {
const namespace = env.TEST_NAMESPACE1;
if (Request.url === "http://localhost:8787/health") {
return new Response("Success");
}
if (Request.url === "http://localhost:8787/writeworkerskvkeyvaluepair") {
const res = await Request.json();
const { key, val } = res;