aboutsummaryrefslogtreecommitdiffstats
path: root/examples/echo_get/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/echo_get/src')
-rw-r--r--examples/echo_get/src/echo_get_app.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/echo_get/src/echo_get_app.erl b/examples/echo_get/src/echo_get_app.erl
index b8def14..d661e9c 100644
--- a/examples/echo_get/src/echo_get_app.erl
+++ b/examples/echo_get/src/echo_get_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}]}
]),