0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Fix rest_basic_auth example

This commit is contained in:
Loïc Hoguin 2016-06-14 11:30:42 +02:00
parent a4fb56018e
commit a55679b231
3 changed files with 150 additions and 11 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_basic_auth_sup:start_link().
stop(_State) ->