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
63 def timestamp_public
64   if is_get?
65     on roda_class.opts[:timestamp_public_prefix], Integer do |_|
66       public
67     end
68   end
69 end