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
113 def hash_public
114   if is_get?
115     on roda_class.opts[:hash_public_prefix], String do |_|
116       public
117     end
118   end
119 end