diff options
author | Loïc Hoguin <[email protected]> | 2013-04-12 12:15:50 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-04-12 12:15:50 +0200 |
commit | fa31c8259572d467ed7e95926c7530f61f775559 (patch) | |
tree | 5cb2f48f05c82ad7f84884315ed058f07f7eed9a | |
parent | 0460406969da1872b6440c519d7c4aafa5a0ff8c (diff) | |
parent | 1ff1ac85cde5dcb7382e14ae3f452ee737b03ca1 (diff) | |
download | cowboy-fa31c8259572d467ed7e95926c7530f61f775559.tar.gz cowboy-fa31c8259572d467ed7e95926c7530f61f775559.tar.bz2 cowboy-fa31c8259572d467ed7e95926c7530f61f775559.zip |
Merge branch 'master' of git://github.com/andrzejsliwa/cowboy
-rw-r--r-- | src/cowboy_static.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cowboy_static.erl b/src/cowboy_static.erl index fe6600c..dd7eed5 100644 --- a/src/cowboy_static.erl +++ b/src/cowboy_static.erl @@ -154,17 +154,17 @@ %% ``` %% %% Serve cowboy/priv/www/index.html as http://example.com/ %% {"/", cowboy_static, -%% [{directory, {priv_dir, cowboy, [<<"www">>]}} +%% [{directory, {priv_dir, cowboy, [<<"www">>]}}, %% {file, <<"index.html">>}]} %% %% %% Serve cowboy/priv/www/page.html under http://example.com/*/page %% {"/:_/page", cowboy_static, -%% [{directory, {priv_dir, cowboy, [<<"www">>]}} +%% [{directory, {priv_dir, cowboy, [<<"www">>]}}, %% {file, <<"page.html">>}]}. %% %% %% Always serve cowboy/priv/www/other.html under http://example.com/other %% {"/other/[...]", cowboy_static, -%% [{directory, {priv_dir, cowboy, [<<"www">>]}} +%% [{directory, {priv_dir, cowboy, [<<"www">>]}}, %% {file, "other.html"}]} %% ''' -module(cowboy_static). |