Merge pull request #5208 from luked99/async-json-example-fix
Async json example fix
This commit is contained in:
commit
c86988491f
1 changed files with 1 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ proc respond*(req: Request, code: HttpCode, content: string,
|
|||
## Examples
|
||||
## --------
|
||||
## .. code-block::nim
|
||||
## import json
|
||||
## proc handler(req: Request) {.async.} =
|
||||
## if req.url.path == "/hello-world":
|
||||
## let msg = %* {"message": "Hello World"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue