module Roda::RodaPlugins::MultiPublic
def self.configure(app, directories, _=OPTS)
def self.configure(app, directories, _=OPTS) roots = app.opts[:multi_public_servers] = (app.opts[:multi_public_servers] || {}).dup directories.each do |key, path| path, headers, mime = path roots[key] = RACK_FILES.new(app.expand_path(path), headers||{}, mime||'text/plain') end roots.freeze end