aboutsummaryrefslogtreecommitdiffstats
path: root/examples/eventsource
diff options
context:
space:
mode:
Diffstat (limited to 'examples/eventsource')
-rw-r--r--examples/eventsource/src/eventsource_app.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/eventsource/src/eventsource_app.erl b/examples/eventsource/src/eventsource_app.erl
index 4f5594b..6ee8611 100644
--- a/examples/eventsource/src/eventsource_app.erl
+++ b/examples/eventsource/src/eventsource_app.erl
@@ -14,11 +14,7 @@ start(_Type, _Args) ->
Dispatch = cowboy_router:compile([
{'_', [
{"/eventsource", eventsource_handler, []},
- {"/", cowboy_static, [
- {directory, {priv_dir, eventsource, []}},
- {file, <<"index.html">>},
- {mimetypes, [{<<".html">>, [<<"text/html">>]}]}
- ]}
+ {"/", cowboy_static, {priv_file, eventsource, "index.html"}}
]}
]),
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [