diff options
Diffstat (limited to 'examples/markdown_middleware')
-rw-r--r-- | examples/markdown_middleware/src/markdown_middleware_app.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/markdown_middleware/src/markdown_middleware_app.erl b/examples/markdown_middleware/src/markdown_middleware_app.erl index 0c1ea74..06253bf 100644 --- a/examples/markdown_middleware/src/markdown_middleware_app.erl +++ b/examples/markdown_middleware/src/markdown_middleware_app.erl @@ -16,10 +16,10 @@ start(_Type, _Args) -> {"/[...]", cowboy_static, {priv_dir, markdown_middleware, ""}} ]} ]), - {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [ - {env, [{dispatch, Dispatch}]}, - {middlewares, [cowboy_router, markdown_converter, cowboy_handler]} - ]), + {ok, _} = cowboy:start_clear(http, 100, [{port, 8080}], #{ + env => #{dispatch => Dispatch}, + middlewares => [cowboy_router, markdown_converter, cowboy_handler] + }), markdown_middleware_sup:start_link(). stop(_State) -> |