mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Merge branch 'static_with_index' of https://github.com/davidw/cowboy into 1.0.x
This commit is contained in:
commit
e5170737d2
2 changed files with 2 additions and 0 deletions
1
examples/static_world/priv/index.html
Normal file
1
examples/static_world/priv/index.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h1>Howdy, Pardner</h1>
|
|
@ -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}]}}
|
||||
]}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue