struct Alfodr::Route
- Alfodr::Route
- Struct
- Value
- Object
Defined in:
alfodr/router/route.crConstructors
Instance Method Summary
- #action : Symbol
- #action=(action : Symbol)
- #call(context)
- #controller : String
- #controller=(controller : String)
- #handler : HTTP::Server::Context -> Nil
- #handler=(handler : HTTP::Server::Context -> _)
- #params
- #params=(params)
- #resource : String
- #resource=(resource : String)
- #scope : String
- #scope=(scope : String)
- #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 : String = "", controller : String = "")
#