struct Amber::Route
- Amber::Route
- Struct
- Value
- Object
Defined in:
amber/router/route.crConstructors
Instance Method Summary
- #action : Symbol
- #action=(action : Symbol)
- #call(context)
- #constraints : Hash(String, Regex)
- #constraints=(constraints : Hash(String, Regex))
- #controller : String
- #controller=(controller : String)
- #handler : HTTP::Server::Context -> Nil
- #handler=(handler : HTTP::Server::Context -> _)
- #params
- #params=(params)
- #resource : String
- #resource=(resource : String)
- #scope : Amber::Router::Scope
- #scope=(scope : Amber::Router::Scope)
- #substitute_keys_in_path(params : Hash(String, String) | Nil = nil)
- #to_json
- #trail
- #valve : Symbol
- #valve=(valve : Symbol)
- #verb : String
- #verb=(verb : String)
Constructor Detail
def self.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)
#