Method: Hanami::Slice::Router#use
- Defined in:
- lib/hanami/slice/router.rb
#use(*args, **kwargs, &blk) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
49 50 51 |
# File 'lib/hanami/slice/router.rb', line 49 def use(*args, **kwargs, &blk) middleware_stack.use(*args, **kwargs.merge(path_prefix: path_prefix.to_s), &blk) end |