Add logging for requests to console

This commit is contained in:
Caleb Braaten 2024-02-17 13:40:54 -08:00
parent 873bf91f81
commit a0816fba9e

View File

@ -1,6 +1,7 @@
Bun.serve({ Bun.serve({
port: 8080, port: 8080,
fetch(req, res) { fetch(req, res) {
console.log(`Recieved Request: ${req.method} ${req.url}`);
return Response.redirect(Bun.env.REDIRECT_TARGET, 302); return Response.redirect(Bun.env.REDIRECT_TARGET, 302);
}, },
}); });