aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide
diff options
context:
space:
mode:
authorGinetom <[email protected]>2019-02-14 09:35:27 -0300
committerLoïc Hoguin <[email protected]>2019-04-03 13:48:57 +0200
commitcd9b04792caabdcb901ea17a3fee0c2414d5ab98 (patch)
tree899718183b97aa8a5faa7b653171f1a260bf8fed /doc/src/guide
parentb86e2839bc52d49c0398af13feb5f225ef64f507 (diff)
downloadcowboy-cd9b04792caabdcb901ea17a3fee0c2414d5ab98.tar.gz
cowboy-cd9b04792caabdcb901ea17a3fee0c2414d5ab98.tar.bz2
cowboy-cd9b04792caabdcb901ea17a3fee0c2414d5ab98.zip
Clarify what the private directory is
Diffstat (limited to 'doc/src/guide')
-rw-r--r--doc/src/guide/static_files.asciidoc10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/src/guide/static_files.asciidoc b/doc/src/guide/static_files.asciidoc
index 9d9b8cc..5af911b 100644
--- a/doc/src/guide/static_files.asciidoc
+++ b/doc/src/guide/static_files.asciidoc
@@ -43,12 +43,12 @@ which means that your route must end with a `[...]` pattern
for it to work. All files are served, including the ones that
may be found in subfolders.
-You can specify the directory relative to an application's
-private directory.
+You can specify the directory relative to the application's
+private directory (e.g. `my_app/priv`).
-The following rule will serve any file found in the application
-`my_app`'s priv directory inside the `static/assets` folder
-whenever the requested path begins with `/assets/`:
+The following rule will serve any file found in the `my_app`
+application's private directory in the `my_app/priv/static/assets`
+folder whenever the requested path begins with `/assets/`:
[source,erlang]
{"/assets/[...]", cowboy_static, {priv_dir, my_app, "static/assets"}}