|
@@ -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().
|