Module: Roda::RodaPlugins::TimestampPublic::RequestMethods

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

Instance Method Summary collapse

Instance Method Details

#timestamp_publicObject

Serve files from the public directory if the file exists, it includes the timestamp_public prefix segment followed by a integer segment for the timestamp, and this is a GET request.



63
64
65
66
67
68
69
# File 'lib/roda/plugins/timestamp_public.rb', line 63

def timestamp_public
  if is_get?
    on roda_class.opts[:timestamp_public_prefix], Integer do |_|
      public
    end
  end
end