aboutsummaryrefslogtreecommitdiffstats
path: root/guide/routing.md
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-01-30 21:50:18 +0100
committerLoïc Hoguin <[email protected]>2013-01-30 21:50:18 +0100
commiteaaa81cce693e6dbbe2a48a594cd4bcd424c0495 (patch)
tree82abf039bc1df48aebc006724988beac44e689bd /guide/routing.md
parenta3c0ff9ccf088fde6be79818c1e8efb641b1ebec (diff)
parent60291c687803fa72a922be8885cfa87a6979070e (diff)
downloadcowboy-eaaa81cce693e6dbbe2a48a594cd4bcd424c0495.tar.gz
cowboy-eaaa81cce693e6dbbe2a48a594cd4bcd424c0495.tar.bz2
cowboy-eaaa81cce693e6dbbe2a48a594cd4bcd424c0495.zip
Merge branch 'fix_routing_guide' of https://github.com/ivlis/cowboy
Diffstat (limited to 'guide/routing.md')
-rw-r--r--guide/routing.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guide/routing.md b/guide/routing.md
index 9d5c5af..ebf34de 100644
--- a/guide/routing.md
+++ b/guide/routing.md
@@ -229,14 +229,14 @@ handler to run instead of having to parse the routes repeatedly.
This can be done with a simple call to `cowboy_router:compile/1`.
``` erlang
-{ok, Routes} = cowboy_router:compile([
+Dispatch = cowboy_router:compile([
%% {HostMatch, list({PathMatch, Handler, Opts})}
{'_', [{'_', my_handler, []}]}
]),
%% Name, NbAcceptors, TransOpts, ProtoOpts
cowboy:start_http(my_http_listener, 100,
[{port, 8080}],
- [{env, [{routes, Routes}]}]
+ [{env, [{dispatch, Dispatch}]}]
).
```