Sha256: b500e8beee9413b384d0017395e21d6f7d054d53a9ac93d743e91e169f3289ac
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
# # frozen_string_literal: true # require "hanami/application/router" # Hanami.application.register_bootable :router do # start do # configuration = Hanami.application.configuration # routes = begin # require File.join(configuration.root, configuration.router.routes_path) # routes_class = Hanami.application.send(:autodiscover_application_constant, configuration.router.routes_class_name) # WIP private # routes_class.routes # rescue LoadError # proc {} # end # resolver = configuration.router.resolver.new( # slices: Hanami.application.slices, # inflector: Hanami.application.inflector # TODO: use container[:inflector]? # ) # router = Hanami::Application::Router.new( # routes: routes, # resolver: resolver, # **configuration.router.options, # ) do # use Hanami.application[:rack_monitor] # Hanami.application.config.for_each_middleware do |m, *args, &block| # use(m, *args, &block) # end # end # register :router, router # end # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.0.0.alpha5 | lib/hanami/application/routing/router.rb |