module Roda::RodaPlugins::HashPublic::RequestMethods

  1. lib/roda/plugins/hash_public.rb

Methods

Public Instance

  1. hash_public

Public Instance methods

hash_public()

Serve files from the public directory if the file exists, it includes the hash_public prefix segment followed by a string segment for the content hash, and this is a GET request.

[show source]
    # File lib/roda/plugins/hash_public.rb
117 def hash_public
118   if is_get?
119     on roda_class.hash_public_prefix, String do |_|
120       public
121     end
122   end
123 end