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:
parent
82cad0bb7d
commit
5f8a01569e
1 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue