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 41efd06d..bdb073f1 100644 --- a/examples/chunked_hello_world/src/chunked_hello_world_app.erl +++ b/examples/chunked_hello_world/src/chunked_hello_world_app.erl @@ -17,7 +17,7 @@ start(_Type, _Args) -> ]} ], {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [ - {dispatch, Dispatch} + {env, [{dispatch, Dispatch}]} ]), chunked_hello_world_sup:start_link(). diff --git a/examples/cookie/src/cookie_app.erl b/examples/cookie/src/cookie_app.erl index 195d6b6c..e527fb1f 100644 --- a/examples/cookie/src/cookie_app.erl +++ b/examples/cookie/src/cookie_app.erl @@ -17,7 +17,7 @@ start(_Type, _Args) -> ]} ], {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [ - {dispatch, Dispatch} + {env, [{dispatch, Dispatch}]} ]), cookie_sup:start_link(). diff --git a/examples/echo_get/src/echo_get_app.erl b/examples/echo_get/src/echo_get_app.erl index b9551f01..b8def142 100644 --- a/examples/echo_get/src/echo_get_app.erl +++ b/examples/echo_get/src/echo_get_app.erl @@ -17,7 +17,7 @@ start(_Type, _Args) -> ]} ], {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [ - {dispatch, Dispatch} + {env, [{dispatch, Dispatch}]} ]), echo_get_sup:start_link(). diff --git a/examples/echo_post/src/echo_post_app.erl b/examples/echo_post/src/echo_post_app.erl index 93f3bd54..83b4b3f8 100644 --- a/examples/echo_post/src/echo_post_app.erl +++ b/examples/echo_post/src/echo_post_app.erl @@ -17,7 +17,7 @@ start(_Type, _Args) -> ]} ], {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [ - {dispatch, Dispatch} + {env, [{dispatch, Dispatch}]} ]), echo_post_sup:start_link(). diff --git a/examples/hello_world/src/hello_world_app.erl b/examples/hello_world/src/hello_world_app.erl index 1cb15ab6..ac863270 100644 --- a/examples/hello_world/src/hello_world_app.erl +++ b/examples/hello_world/src/hello_world_app.erl @@ -17,7 +17,7 @@ start(_Type, _Args) -> ]} ], {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [ - {dispatch, Dispatch} + {env, [{dispatch, Dispatch}]} ]), hello_world_sup:start_link(). diff --git a/examples/rest_hello_world/src/rest_hello_world_app.erl b/examples/rest_hello_world/src/rest_hello_world_app.erl index 510dbb19..c7f608ca 100644 --- a/examples/rest_hello_world/src/rest_hello_world_app.erl +++ b/examples/rest_hello_world/src/rest_hello_world_app.erl @@ -17,7 +17,7 @@ start(_Type, _Args) -> ]} ], {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [ - {dispatch, Dispatch} + {env, [{dispatch, Dispatch}]} ]), rest_hello_world_sup:start_link(). diff --git a/examples/static/src/static_app.erl b/examples/static/src/static_app.erl index 16ef554c..e147db97 100644 --- a/examples/static/src/static_app.erl +++ b/examples/static/src/static_app.erl @@ -20,7 +20,7 @@ start(_Type, _Args) -> ]} ], {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [ - {dispatch, Dispatch} + {env, [{dispatch, Dispatch}]} ]), static_sup:start_link().