diff options
author | Loïc Hoguin <[email protected]> | 2013-11-14 17:00:27 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-11-14 17:00:27 +0100 |
commit | f541942867e31671ca8f5fd51508cd2e76bdedfa (patch) | |
tree | f288f070cf7d70c9ad33dc375f5aeb9ab39907a6 /examples/clock/src | |
parent | d3e906fe634a9b58327e5c8a95782a8798250e08 (diff) | |
download | bullet-f541942867e31671ca8f5fd51508cd2e76bdedfa.tar.gz bullet-f541942867e31671ca8f5fd51508cd2e76bdedfa.tar.bz2 bullet-f541942867e31671ca8f5fd51508cd2e76bdedfa.zip |
Make Bullet work with Cowboy 0.9.0
Diffstat (limited to 'examples/clock/src')
-rw-r--r-- | examples/clock/src/clock.erl | 1 | ||||
-rw-r--r-- | examples/clock/src/clock_app.erl | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/examples/clock/src/clock.erl b/examples/clock/src/clock.erl index e8547e1..f667565 100644 --- a/examples/clock/src/clock.erl +++ b/examples/clock/src/clock.erl @@ -22,5 +22,6 @@ start() -> ok = application:start(crypto), ok = application:start(ranch), + ok = application:start(cowlib), ok = application:start(cowboy), ok = application:start(clock). diff --git a/examples/clock/src/clock_app.erl b/examples/clock/src/clock_app.erl index 9b3985f..beaeb12 100644 --- a/examples/clock/src/clock_app.erl +++ b/examples/clock/src/clock_app.erl @@ -15,12 +15,7 @@ start(_Type, _Args) -> {'_', [ {"/", toppage_handler, []}, {"/bullet", bullet_handler, [{handler, stream_handler}]}, - {"/static/[...]", cowboy_static, [ - {directory, {priv_dir, bullet, []}}, - {mimetypes, [ - {<<".js">>, [<<"application/javascript">>]} - ]} - ]} + {"/static/[...]", cowboy_static, {priv_dir, bullet, []}} ]} ]), {ok, _} = cowboy:start_http(http, 100, |