aboutsummaryrefslogtreecommitdiffstats
path: root/examples/static_world
diff options
context:
space:
mode:
Diffstat (limited to 'examples/static_world')
-rw-r--r--examples/static_world/src/static_world_app.erl11
1 files changed, 2 insertions, 9 deletions
diff --git a/examples/static_world/src/static_world_app.erl b/examples/static_world/src/static_world_app.erl
index 4cc0254..f5ab1a9 100644
--- a/examples/static_world/src/static_world_app.erl
+++ b/examples/static_world/src/static_world_app.erl
@@ -13,15 +13,8 @@
start(_Type, _Args) ->
Dispatch = cowboy_router:compile([
{'_', [
- {"/[...]", cowboy_static, [
- {directory, {priv_dir, static_world, []}},
- {mimetypes, [
- {<<".html">>, [<<"text/html">>]},
- {<<".txt">>, [<<"text/plain">>]},
- {<<".mp4">>, [<<"video/mp4">>]},
- {<<".ogv">>, [<<"video/ogg">>]}
- ]}
- ]}
+ {"/[...]", cowboy_static, {priv_dir, static_world, "",
+ [{mimetypes, cow_mimetypes, all}]}}
]}
]),
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [