Add logging for requests to console
This commit is contained in:
parent
873bf91f81
commit
a0816fba9e
1
index.js
1
index.js
@ -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);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user