module Roda::RodaPlugins::MultiPublic::RequestMethods

  1. lib/roda/plugins/multi_public.rb

Methods

Public Instance

  1. multi_public

Public Instance methods

multi_public(key)

Serve files from the directory corresponding to the given key if the file exists and this is a GET request.

[show source]
   # File lib/roda/plugins/multi_public.rb
86 def multi_public(key)
87   public_serve_with(roda_class.opts[:multi_public_servers].fetch(key))
88 end