struct Launch::DSL::Router
- Launch::DSL::Router
- Struct
- Value
- Object
Defined in:
launch/dsl/router.crConstant Summary
-
RESOURCES =
[:get, :post, :put, :patch, :delete, :options, :head, :trace, :connect]
Constructors
Instance Method Summary
- #clone
- #copy_with(router _router = @router, valve _valve = @valve, scope _scope = @scope)
- #router : Amber::Router::Router
- #scope : Launch::Router::Scope
- #valve : Symbol
- #websocket(path, app_socket)
Macro Summary
- connect(*args)
- delete(*args)
- get(*args)
- head(*args)
- namespace(scoped_namespace)
- options(*args)
- patch(*args)
- post(*args)
- put(*args)
- resources(resource, controller, only = nil, except = nil, constraints = {} of String => Regex)
- route(verb, resource, controller, action, constraints = {} of String => Regex)
- trace(*args)
Constructor Detail
def self.new(router : Amber::Router::Router, valve : Symbol, scope : Launch::Router::Scope)
#
Instance Method Detail
def copy_with(router _router = @router, valve _valve = @valve, scope _scope = @scope)
#
Macro Detail
macro resources(resource, controller, only = nil, except = nil, constraints = {} of String => Regex)
#