aboutsummaryrefslogtreecommitdiffstats
path: root/guide
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-04-11 23:26:16 +0200
committerLoïc Hoguin <[email protected]>2013-04-11 23:26:16 +0200
commit5b9404fd077dd66f3bbb19b11864eac5e4c0218b (patch)
tree62b7cad1593051746e2a82f4cf45e6a5973c308f /guide
parent2a98ae05e3c45c8f7dc5eed2aa75d99bc38c84af (diff)
downloadcowboy-5b9404fd077dd66f3bbb19b11864eac5e4c0218b.tar.gz
cowboy-5b9404fd077dd66f3bbb19b11864eac5e4c0218b.tar.bz2
cowboy-5b9404fd077dd66f3bbb19b11864eac5e4c0218b.zip
Fix static handler snippet in the guide
Thanks to Martin Törnwall for pointing this out.
Diffstat (limited to 'guide')
-rw-r--r--guide/static_handlers.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guide/static_handlers.md b/guide/static_handlers.md
index c4288c6..0843599 100644
--- a/guide/static_handlers.md
+++ b/guide/static_handlers.md
@@ -19,14 +19,14 @@ Static handlers are pre-written REST handlers. They only need
to be specified in the routing information with the proper options.
The following example routing serves all files found in the
-`priv_dir/static/` directory of the application. It uses a
-mimetypes library to figure out the files' content types.
+`priv_dir/static/` directory of the application `my_app`. It uses
+a mimetypes library to figure out the files' content types.
``` erlang
Dispatch = [
{'_', [
{"/[...]", cowboy_static, [
- {directory, {priv_dir, static, []}},
+ {directory, {priv_dir, my_app, [<<"static">>]}},
{mimetypes, {fun mimetypes:path_to_mimes/2, default}}
]}
]}