Method: Hanami::API.scope
- Defined in:
- lib/hanami/api.rb
.scope ⇒ Object
Defines a routing scope. Routes defined in the context of a scope, inherit the given path as path prefix and as a named routes prefix.
293 294 295 |
# File 'lib/hanami/api.rb', line 293 def self.scope(...) @router.scope(...) end |