lib/hanami/api/middleware.rb in hanami-api-0.2.0 vs lib/hanami/api/middleware.rb in hanami-api-0.3.0

- old
+ new

@@ -1,17 +1,16 @@ # frozen_string_literal: true +require "hanami/middleware/app" + module Hanami class API # Hanami::API middleware stack # # @since 0.1.0 # @api private module Middleware - require "hanami/api/middleware/app" - require "hanami/api/middleware/trie" - # Middleware stack # # @since 0.1.0 # @api private class Stack @@ -42,10 +41,10 @@ # @api private def finalize(app) mapping = to_hash return app if mapping.empty? - App.new(app, mapping) + Hanami::Middleware::App.new(app, mapping) end private # @since 0.1.1