Skip to content

Commit

Permalink
Add root-path warning to wrap-resource docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Apr 28, 2024
1 parent 7e4139e commit 8a56dec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ring-core/src/ring/middleware/resource.clj
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
the request map is passed onto the handler. The root-path argument will be
added to the beginning of the resource path.
The root-path argument should specify a prefix that only public resources
have. By default, a resource is any file on the classpath, so it is important
to choose a prefix that excludes any resources you want to keep private, such
as source or class files. A root-path of \"\" will make all resources public,
so should be avoided.
Accepts the following options:
:loader - resolve the resource using this class loader
Expand Down

0 comments on commit 8a56dec

Please sign in to comment.