aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide/routing.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-05-24 14:50:27 +0200
committerLoïc Hoguin <[email protected]>2016-05-24 14:50:27 +0200
commitb5a40256ddd5585d12c2a01771eb93d4a8630a62 (patch)
tree9d03e630d501852b216a8b7990a1d03a02e9f4dd /doc/src/guide/routing.asciidoc
parent25912dfc05e45e0f4453f689410fce80a1af69ab (diff)
downloadcowboy-b5a40256ddd5585d12c2a01771eb93d4a8630a62.tar.gz
cowboy-b5a40256ddd5585d12c2a01771eb93d4a8630a62.tar.bz2
cowboy-b5a40256ddd5585d12c2a01771eb93d4a8630a62.zip
Partial update of the user guide
I will do more breaking changes before documenting more.
Diffstat (limited to 'doc/src/guide/routing.asciidoc')
-rw-r--r--doc/src/guide/routing.asciidoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/guide/routing.asciidoc b/doc/src/guide/routing.asciidoc
index 6ac2ebd..150c634 100644
--- a/doc/src/guide/routing.asciidoc
+++ b/doc/src/guide/routing.asciidoc
@@ -203,9 +203,9 @@ Dispatch = cowboy_router:compile([
{'_', [{'_', my_handler, []}]}
]),
%% Name, NbAcceptors, TransOpts, ProtoOpts
-cowboy:start_http(my_http_listener, 100,
+cowboy:start_clear(my_http_listener, 100,
[{port, 8080}],
- [{env, [{dispatch, Dispatch}]}]
+ #{env => #{dispatch => Dispatch}}
).
----