diff options
Diffstat (limited to 'doc/src/guide/routing.asciidoc')
-rw-r--r-- | doc/src/guide/routing.asciidoc | 4 |
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}} ). ---- |