From 5f8a01569ef9b4ab7880048ead354fa30937622f Mon Sep 17 00:00:00 2001 From: ricfrst Date: Fri, 1 Nov 2024 18:53:54 -0400 Subject: [PATCH] Update server.ts Signed-off-by: ricfrst --- tests/specs/serve/declarativeSer/server.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/specs/serve/declarativeSer/server.ts b/tests/specs/serve/declarativeSer/server.ts index 25d905d5d8..f2537670ab 100644 --- a/tests/specs/serve/declarativeSer/server.ts +++ b/tests/specs/serve/declarativeSer/server.ts @@ -1,3 +1,8 @@ -export const fetch = (req: Request) => { - return new Response("Hello from declarative server!"); -}; \ No newline at end of file +export default { + fetch(req: Request) { + return new Response("Hello from declarative server"); + }, + onListen(info) { + console.log(info); + } +} satisfies Deno.ServeDefaultExport;