struct

Amber::Route

Inherits Struct < Value < Object

Constructors

new(verb : String, resource : String, handler : HTTP::Server::Context -> , action : Symbol = :index, valve : Symbol = :web, scope : Router::Scope = Router::Scope.new, controller : String = "", constraints : Hash = {} of String => Regex)
Source

Instance methods

action
Source
action=(action : Symbol)
Source
call(context)
Source
constraints
Source
constraints=(constraints : Hash(String, Regex))
Source
controller
Source
controller=(controller : String)
Source
handler
Source
handler=(handler : HTTP::Server::Context -> _)
Source
params
Source
params=(params)
Source
resource
Source
resource=(resource : String)
Source
scope
Source
substitute_keys_in_path(params : Hash(String, String) | Nil = nil)
Source
to_json
Source
trail
Source
valve
Source
valve=(valve : Symbol)
Source
verb
Source
verb=(verb : String)
Source