mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
docs: use Deno.serve
in README (#19805)
This commit is contained in:
parent
ef06ed28d8
commit
be9576ccc6
1 changed files with 1 additions and 3 deletions
|
@ -78,9 +78,7 @@ deno run https://deno.land/std/examples/welcome.ts
|
|||
Or [setup a simple HTTP server](https://examples.deno.land/http-server):
|
||||
|
||||
```ts
|
||||
import { serve } from "https://deno.land/std@0.182.0/http/server.ts";
|
||||
|
||||
serve((_req) => new Response("Hello, World!"));
|
||||
Deno.serve((_req) => new Response("Hello, World!"));
|
||||
```
|
||||
|
||||
[More examples](https://examples.deno.land/).
|
||||
|
|
Loading…
Reference in a new issue