aboutsummaryrefslogtreecommitdiffstats
path: root/examples/cookie/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cookie/src')
-rw-r--r--examples/cookie/src/cookie_app.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cookie/src/cookie_app.erl b/examples/cookie/src/cookie_app.erl
index e527fb1..91d1b95 100644
--- a/examples/cookie/src/cookie_app.erl
+++ b/examples/cookie/src/cookie_app.erl
@@ -11,11 +11,11 @@
%% API.
start(_Type, _Args) ->
- Dispatch = [
+ Dispatch = cowboy_router:compile([
{'_', [
{'_', toppage_handler, []}
]}
- ],
+ ]),
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
{env, [{dispatch, Dispatch}]}
]),