lib/hanami/api.rb in hanami-api-0.1.1 vs lib/hanami/api.rb in hanami-api-0.1.2
- old
+ new
@@ -291,10 +291,10 @@
def self.use(middleware, *args, &blk)
@router.use(middleware, *args, &blk)
end
# @since 0.1.0
- def initialize(router: self.class.router)
+ def initialize(router: self.class.router.dup)
@router = router
freeze
end