Update index.ts

This commit is contained in:
Andras Bacsai
2024-05-15 09:56:48 +02:00
committed by GitHub
parent 9c53f8247a
commit 0f87f6b5d8

View File

@@ -5,6 +5,7 @@ Bun.serve({
const url = new URL(req.url);
if (url.pathname === "/") return new Response("Home page!");
if (url.pathname === "/blog") return new Response("Blog!");
if (url.pathname === "/about") return new Response("About!");
return new Response("404!");
},
})