lib/hanami/routing/http_router.rb in hanami-router-1.0.0.beta2 vs lib/hanami/routing/http_router.rb in hanami-router-1.0.0.beta3
- old
+ new
@@ -190,20 +190,23 @@
end
end
private
+ # @api private
def _rescue_url_recognition
yield
rescue ::HttpRouter::InvalidRouteException,
::HttpRouter::TooManyParametersException => e
raise Routing::InvalidRouteException.new("#{ e.message } - please check given arguments")
end
+ # @api private
def add_with_request_method(path, method, opts = {}, &app)
super.generate(@resolver, opts, &app)
end
+ # @api private
def _custom_path(uri_string)
uri = URI.parse(uri_string)
uri.path = @prefix.join(uri.path)
uri.to_s
end