Had to be put

This commit is contained in:
Niki Wix Skaarup 2025-04-06 03:15:13 +02:00
parent 170a019bca
commit a25323b0ee
Signed by: nikiskaarup
GPG key ID: FC2F1B116F6E788C

View file

@ -34,7 +34,7 @@ Bun.serve({
headers: { 'Content-Type': 'application/json' } headers: { 'Content-Type': 'application/json' }
}); });
}, },
async POST(req) { async PUT(req) {
if (!isAuthenticated(req)) return unauthorizedResp(); if (!isAuthenticated(req)) return unauthorizedResp();
const body = await getEntryFromReq(req); const body = await getEntryFromReq(req);
@ -121,6 +121,7 @@ Bun.serve({
reusePort: true, reusePort: true,
port: env.PORT || 3000, port: env.PORT || 3000,
// async fetch(req, server) { // async fetch(req, server) {
// console.log(req);
// return new Response("Not found", { status: 404 }); // return new Response("Not found", { status: 404 });
// }, // },
}); });