From f5c37a789c0394104c2fe69d27d6b131712432de Mon Sep 17 00:00:00 2001 From: "David N. Welton" Date: Tue, 17 Feb 2015 11:53:08 +0100 Subject: Add an index.html that is also served statically as the default for / --- examples/static_world/src/static_world_app.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/static_world/src/static_world_app.erl') 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}]}} ]} -- cgit v1.2.3