This commit is contained in:
didier amyot committed 2024-01-19 18:39:20 -05:00
1 parent 5a6d3b15ac
commit a3872b028e
1 file changed
+9
+9
View File
@@ -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);