1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/deno/app.ts

8 lines
261 B
TypeScript
Raw Normal View History

2021-11-26 12:10:09 +09:00
import { Handler, serve, ServeInit } from "http/server.ts";
2021-11-24 17:53:54 +09:00
const handler: Handler = () => new Response("Hello World\n");
const options: ServeInit = { addr: "localhost:8080" };
serve(handler, options);
console.log(`Server running on http://${options.addr}`);