summaryrefslogtreecommitdiffstats
path: root/docs/en/cowboy/2.6/guide/static_files.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-04-04 20:38:06 +0200
committerLoïc Hoguin <[email protected]>2019-04-04 20:38:06 +0200
commit8b84abfeb42f664f838def3708838e5ac7275443 (patch)
treefbb3c3c864f6eec7df3e88679f7aedde04d49d69 /docs/en/cowboy/2.6/guide/static_files.asciidoc
parentd1e24ed5ea37a5949e2f75af3fcc4bfda08df092 (diff)
downloadninenines.eu-8b84abfeb42f664f838def3708838e5ac7275443.tar.gz
ninenines.eu-8b84abfeb42f664f838def3708838e5ac7275443.tar.bz2
ninenines.eu-8b84abfeb42f664f838def3708838e5ac7275443.zip
Cowboy 2.6.2
Diffstat (limited to 'docs/en/cowboy/2.6/guide/static_files.asciidoc')
-rw-r--r--docs/en/cowboy/2.6/guide/static_files.asciidoc10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/en/cowboy/2.6/guide/static_files.asciidoc b/docs/en/cowboy/2.6/guide/static_files.asciidoc
index 9d9b8cc2..5af911be 100644
--- a/docs/en/cowboy/2.6/guide/static_files.asciidoc
+++ b/docs/en/cowboy/2.6/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"}}