diff options
Diffstat (limited to 'examples/basic_auth/src')
-rw-r--r-- | examples/basic_auth/src/basic_auth_app.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/basic_auth/src/basic_auth_app.erl b/examples/basic_auth/src/basic_auth_app.erl index c60a574..24c766e 100644 --- a/examples/basic_auth/src/basic_auth_app.erl +++ b/examples/basic_auth/src/basic_auth_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}]} ]), |