lib/hanami/routing/http_router.rb in hanami-router-0.7.0 vs lib/hanami/routing/http_router.rb in hanami-router-0.8.0
- old
+ new
@@ -1,19 +1,14 @@
require 'uri'
require 'http_router'
-require 'hanami/utils/io'
require 'hanami/routing/endpoint_resolver'
require 'hanami/routing/route'
require 'hanami/routing/parsers'
require 'hanami/routing/force_ssl'
require 'hanami/routing/error'
require 'hanami/utils/path_prefix'
-Hanami::Utils::IO.silence_warnings do
- HttpRouter::Route::VALID_HTTP_VERBS = %w{GET POST PUT PATCH DELETE HEAD OPTIONS TRACE}
-end
-
module Hanami
module Routing
# Invalid route
# This is raised when the router fails to recognize a route, because of the
# given arguments.
@@ -57,9 +52,13 @@
URL_SEPARATOR = '/'.freeze
# @since 0.5.0
# @api private
attr_reader :namespace
+
+ # @since 0.8.0
+ # @api private
+ attr_reader :prefix
# Initialize the router.
#
# @see Hanami::Router#initialize
#