0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Merge branch 'static_with_index' of https://github.com/davidw/cowboy into 1.0.x

This commit is contained in:
Loïc Hoguin 2015-05-06 11:50:19 +03:00
commit e5170737d2
2 changed files with 2 additions and 0 deletions

View file

@ -0,0 +1 @@
<h1>Howdy, Pardner</h1>

View file

@ -13,6 +13,7 @@
start(_Type, _Args) -> start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/", cowboy_static, {priv_file, static_world, "index.html"}},
{"/[...]", cowboy_static, {priv_dir, static_world, "", {"/[...]", cowboy_static, {priv_dir, static_world, "",
[{mimetypes, cow_mimetypes, all}]}} [{mimetypes, cow_mimetypes, all}]}}
]} ]}