mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Update static_files.asciidoc
Minor update clarifying the need of the `priv` directory on project's root.
This commit is contained in:
parent
e0254cdcb0
commit
ed201bde4f
1 changed files with 4 additions and 4 deletions
|
@ -43,11 +43,11 @@ which means that your route must end with a `[...]` pattern
|
||||||
for it to work. All files are served, including the ones that
|
for it to work. All files are served, including the ones that
|
||||||
may be found in subfolders.
|
may be found in subfolders.
|
||||||
|
|
||||||
You can specify the directory relative to an application's
|
You can specify the directory relative to the application's
|
||||||
private directory.
|
private directory (e.g. `my_app/priv`).
|
||||||
|
|
||||||
The following rule will serve any file found in the application
|
The following rule will serve any file found in the application's
|
||||||
`my_app`'s priv directory inside the `static/assets` folder
|
`my_app/priv` directory and inside the `static/assets` folder
|
||||||
whenever the requested path begins with `/assets/`:
|
whenever the requested path begins with `/assets/`:
|
||||||
|
|
||||||
[source,erlang]
|
[source,erlang]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue