mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Fix examples to follow new env tuple standard
This brings examples in line with the recent Middleware change.
This commit is contained in:
parent
faeb37ed80
commit
33461ecdbd
7 changed files with 7 additions and 7 deletions
|
@ -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().
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue