From ab0699ab29b6750d19cf2e0fce03e185d2206e9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 29 Jan 2013 14:47:17 +0100 Subject: Make examples use the new routing --- examples/chunked_hello_world/src/chunked_hello_world_app.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/chunked_hello_world') 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}]} ]), -- cgit v1.2.3