0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 20:50:24 +00:00

Fix rest_hello_world example

This commit is contained in:
Loïc Hoguin 2016-06-09 16:33:31 +02:00
parent 5ca49fefa9
commit 4293a40d9e
3 changed files with 273 additions and 5 deletions

View file

@ -16,9 +16,9 @@ start(_Type, _Args) ->
{"/", toppage_handler, []}
]}
]),
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
{env, [{dispatch, Dispatch}]}
]),
{ok, _} = cowboy:start_clear(http, 100, [{port, 8080}], #{
env => #{dispatch => Dispatch}
}),
rest_hello_world_sup:start_link().
stop(_State) ->