Module: Roda::RodaPlugins::RunRequireSlash::RequestMethods

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

Instance Method Summary collapse

Instance Method Details

#runObject

Calls the given rack app only if the remaining patch is empty or starts with a slash.



36
37
38
39
40
# File 'lib/roda/plugins/run_require_slash.rb', line 36

def run(*)
  if @remaining_path.empty? || @remaining_path.start_with?('/')
    super
  end
end