struct

Amber::DSL::Router

Inherits Struct < Value < Object

Constants

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

Constructors

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
namespace(scoped_namespace)
Source
options(*args)
Source
patch(*args)
Source
post(*args)
Source
put(*args)
Source
resources(resource, controller, only = nil, except = nil, constraints = {} of String => Regex)
Source
route(verb, resource, controller, action, constraints = {} of String => Regex)
Source
trace(*args)
Source