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
90 def multi_public(key)
91   public_serve_with(roda_class.multi_public_servers.fetch(key))
92 end