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