mirror of
https://github.com/denoland/deno.git
synced 2025-02-21 12:53:05 -05:00

By default, `deno serve` will assign port 8000 (like `Deno.serve`). Users may choose a different port using `--port`. `deno serve /tmp/file.ts` `server.ts`: ```ts export default { fetch(req) { return new Response("hello world!\n"); }, }; ```
4 lines
35 B
TypeScript
4 lines
35 B
TypeScript
export default {
|
|
bad() {
|
|
},
|
|
};
|