mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Add an index.html that is also served statically as the default for /
This commit is contained in:
parent
21632944bb
commit
f5c37a789c
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