no idea
This commit is contained in:
1 parent
5a6d3b15ac
commit
a3872b028e
1 file changed
+9
@@ -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);
|
||||
Reference in new issue
Block a user