module Roda::RodaPlugins::TimestampPublic::RequestMethods

  1. lib/roda/plugins/timestamp_public.rb

Methods

Public Instance

  1. timestamp_public

Public Instance methods

timestamp_public()

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.

[show source]
   # File lib/roda/plugins/timestamp_public.rb
66 def timestamp_public
67   if is_get?
68     on roda_class.opts[:timestamp_public_prefix], Integer do |_|
69       public
70     end
71   end
72 end