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,7 +5,8 @@ Bun.serve({
const url = new URL(req.url); const url = new URL(req.url);
if (url.pathname === "/") return new Response("Home page!"); if (url.pathname === "/") return new Response("Home page!");
if (url.pathname === "/blog") return new Response("Blog!"); if (url.pathname === "/blog") return new Response("Blog!");
if (url.pathname === "/about") return new Response("About!");
return new Response("404!"); return new Response("404!");
}, },
}) })
console.log(`Server running at http://localhost:${PORT}`); console.log(`Server running at http://localhost:${PORT}`);