struct

Alfodr::DSL::Router

Inherits Struct < Value < Object

Constants

RESOURCES = [:get, :post, :put, :patch, :delete, :options, :head, :trace, :connect]

Constructors

new(router : Alfodr::Router::Router, valve : Symbol, scope : String)
Source

Instance methods

clone
Source
copy_with(router _router = @router, valve _valve = @valve, scope _scope = @scope)
Source
router
scope
valve
websocket(path, app_socket)
Source

Macros

connect(*args)
Source
delete(*args)
Source
get(*args)
Source
head(*args)
Source
options(*args)
Source
patch(*args)
Source
post(*args)
Source
put(*args)
Source
resources(resource, controller, only = nil, except = nil)
Source
route(verb, resource, controller, action)
Source
trace(*args)
Source