mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Merge branch 'patch-1' of https://github.com/grahamrhay/cowboy
This commit is contained in:
commit
881316e6a1
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ start(_Type, _Args) ->
|
||||||
Dispatch = cowboy_router:compile([
|
Dispatch = cowboy_router:compile([
|
||||||
{'_', [{"/", hello_handler, []}]}
|
{'_', [{"/", hello_handler, []}]}
|
||||||
]),
|
]),
|
||||||
cowboy:start_http(my_http_listener, 100, [{port, 8080}],
|
{ok, _} = cowboy:start_http(my_http_listener, 100, [{port, 8080}],
|
||||||
[{env, [{dispatch, Dispatch}]}]
|
[{env, [{dispatch, Dispatch}]}]
|
||||||
),
|
),
|
||||||
hello_erlang_sup:start_link().
|
hello_erlang_sup:start_link().
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue