struct Amber::Route

Defined in:

amber/router/route.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def action : Symbol #

[View source]
def action=(action : Symbol) #

[View source]
def call(context) #

[View source]
def constraints : Hash(String, Regex) #

[View source]
def constraints=(constraints : Hash(String, Regex)) #

[View source]
def controller : String #

[View source]
def controller=(controller : String) #

[View source]
def handler : HTTP::Server::Context -> Nil #

[View source]
def handler=(handler : HTTP::Server::Context -> _) #

[View source]
def params #

[View source]
def params=(params) #

[View source]
def resource : String #

[View source]
def resource=(resource : String) #

[View source]
def scope : Amber::Router::Scope #

[View source]
def scope=(scope : Amber::Router::Scope) #

[View source]
def substitute_keys_in_path(params : Hash(String, String) | Nil = nil) #

[View source]
def to_json #

[View source]
def trail #

[View source]
def valve : Symbol #

[View source]
def valve=(valve : Symbol) #

[View source]
def verb : String #

[View source]
def verb=(verb : String) #

[View source]