route fix...?

This commit is contained in:
cirroskais 2024-03-18 16:10:02 -04:00
parent 9f8c705224
commit 379fd163fd
No known key found for this signature in database
GPG key ID: 5FC73EBF2678E33D

View file

@ -5,7 +5,7 @@ Bun.serve({
async fetch(req) {
const url = new URL(req.url);
if (url.pathname === "/") return new Response("hello yes this is garf");
if (url.pathname === "/api/token") return await token(req);
if (url.pathname === "/token") return await token(req);
return new Response("garf dont know what want...");
},
});