struct Alfodr::Route

Defined in:

alfodr/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 : String = "", controller : String = "") #

[View source]

Instance Method Detail

def action : Symbol #

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

[View source]
def call(context) #

[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 : String #

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

[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]