Module: Roda::RodaPlugins::MultiPublic::RequestMethods
- Defined in:
- lib/roda/plugins/multi_public.rb
Instance Method Summary collapse
-
#multi_public(key) ⇒ Object
Serve files from the directory corresponding to the given key if the file exists and this is a GET request.
Instance Method Details
#multi_public(key) ⇒ Object
Serve files from the directory corresponding to the given key if the file exists and this is a GET request.
86 87 88 |
# File 'lib/roda/plugins/multi_public.rb', line 86 def multi_public(key) public_serve_with(roda_class.opts[:multi_public_servers].fetch(key)) end |