mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-23 15:58:57 +00:00
Add response for '/202' route with status 202
This commit is contained in:
@@ -8,6 +8,7 @@ Bun.serve({
|
|||||||
if (url.pathname === "/about") return new Response("About!");
|
if (url.pathname === "/about") return new Response("About!");
|
||||||
if (url.pathname === "/x") return new Response("a");
|
if (url.pathname === "/x") return new Response("a");
|
||||||
if (url.pathname === "/201") return new Response("201", { status: 201 });
|
if (url.pathname === "/201") return new Response("201", { status: 201 });
|
||||||
|
if (url.pathname === "/202") return new Response("202", { status: 202 });
|
||||||
return new Response("404!");
|
return new Response("404!");
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user