Module: Roda::RodaPlugins::Public::RequestMethods

Defined in:
lib/roda/plugins/public.rb

Instance Method Summary collapse

Instance Method Details

#publicObject

Serve files from the public directory if the file exists and this is a GET request.



94
95
96
# File 'lib/roda/plugins/public.rb', line 94

def public
  public_serve_with(roda_class.opts[:public_server])
end