mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
missing comma in documentation of static examples
This commit is contained in:
parent
0460406969
commit
1ff1ac85cd
1 changed files with 3 additions and 3 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue