lib/hanami/components/app/routes.rb in hanami-1.0.0.beta2 vs lib/hanami/components/app/routes.rb in hanami-1.0.0.beta3

- old
+ new

@@ -1,10 +1,14 @@ require 'hanami/routes' require 'hanami/routing/default' module Hanami + # @since 0.9.0 + # @api private module Components + # @since 0.9.0 + # @api private module App # hanami-router configuration for a sigle Hanami application in the project. # # @since 0.9.0 # @api private @@ -24,9 +28,11 @@ end Components.resolved("#{app.app_name}.routes", routes) end + # @since 0.9.0 + # @api private def self.application_routes(app) # rubocop:disable Metrics/MethodLength config = app.configuration namespace = app.namespace resolver = Hanami::Routing::EndpointResolver.new(pattern: config.controller_pattern, namespace: namespace)