1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

Update server.ts

Signed-off-by: ricfrst <ricardofurst06@gmail.com>
This commit is contained in:
ricfrst 2024-11-01 18:53:54 -04:00 committed by GitHub
parent 82cad0bb7d
commit 5f8a01569e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,3 +1,8 @@
export const fetch = (req: Request) => {
return new Response("Hello from declarative server!");
};
export default {
fetch(req: Request) {
return new Response("Hello from declarative server");
},
onListen(info) {
console.log(info);
}
} satisfies Deno.ServeDefaultExport;