aboutsummaryrefslogtreecommitdiffstats
path: root/examples/static_world/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/static_world/src')
-rw-r--r--examples/static_world/src/static_world_app.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/static_world/src/static_world_app.erl b/examples/static_world/src/static_world_app.erl
index f5ab1a9..4d194c7 100644
--- a/examples/static_world/src/static_world_app.erl
+++ b/examples/static_world/src/static_world_app.erl
@@ -13,6 +13,7 @@
start(_Type, _Args) ->
Dispatch = cowboy_router:compile([
{'_', [
+ {"/", cowboy_static, {priv_file, static_world, "index.html"}},
{"/[...]", cowboy_static, {priv_dir, static_world, "",
[{mimetypes, cow_mimetypes, all}]}}
]}