module Roda::RodaPlugins::RunAppendSlash::RequestMethods
def run(app)
path internally, or a redirect is issued when configured with
does not contain a trailing slash, a trailing slash is appended to the
Calls the given rack app. If the path matches the root of the app but
def run(app) if remaining_path.empty? if scope.opts[:run_append_slash_redirect] redirect("#{path}/") else @remaining_path += '/' end end super end