```js export default { async fetch(req) { const { pathname } = new URL(req.url); if (path

export default {
async fetch(req) {
const { pathname } = new URL(req.url);

if (pathname == "/foo") {
return new Response("foo")
}

if (pathname == "/bar") {
return new Response("bar")
}

return new Response("baz")
}
}
export default {
async fetch(req) {
const { pathname } = new URL(req.url);

if (pathname == "/foo") {
return new Response("foo")
}

if (pathname == "/bar") {
return new Response("bar")
}

return new Response("baz")
}
}
var r={async fetch(n){let{pathname:e}=new URL(n.url);return e=="/foo"?new Response("foo"):e=="/bar"?new Response("bar"):new Response("baz")}};export{r as default};
var r={async fetch(n){let{pathname:e}=new URL(n.url);return e=="/foo"?new Response("foo"):e=="/bar"?new Response("bar"):new Response("baz")}};export{r as default};
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?