diff --git a/server/servet.ts b/server/servet.ts new file mode 100644 index 0000000..2426944 --- /dev/null +++ b/server/servet.ts @@ -0,0 +1,9 @@ +const port = 8080; + +function handler(request: Request): Response { + const body = "hello world"; + return new Response(body, { status: 200 }); +}; + +console.log(`HTTP server running. Access it at: http://localhost:8080/`); +Deno.serve({ port: port }, handler); \ No newline at end of file