This brings examples in line with the recent Middleware change.
@@ -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().
cookie_sup:start_link().
echo_get_sup:start_link().
echo_post_sup:start_link().
hello_world_sup:start_link().
rest_hello_world_sup:start_link().
@@ -20,7 +20,7 @@ start(_Type, _Args) ->
static_sup:start_link().