struct Launch::DSL::Router

Defined in:

launch/dsl/router.cr

Constant Summary

RESOURCES = [:get, :post, :put, :patch, :delete, :options, :head, :trace, :connect]

Constructors

Instance Method Summary

Macro Summary

Instance methods inherited from class Object

blank? blank?, present? present?

Constructor Detail

def self.new(router : Amber::Router::Router, valve : Symbol, scope : Launch::Router::Scope) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(router _router = @router, valve _valve = @valve, scope _scope = @scope) #

[View source]
def router : Amber::Router::Router #

def scope : Launch::Router::Scope #

def valve : Symbol #

def websocket(path, app_socket) #

[View source]

Macro Detail

macro connect(*args) #

[View source]
macro delete(*args) #

[View source]
macro get(*args) #

[View source]
macro head(*args) #

[View source]
macro namespace(scoped_namespace) #

[View source]
macro options(*args) #

[View source]
macro patch(*args) #

[View source]
macro post(*args) #

[View source]
macro put(*args) #

[View source]
macro resources(resource, controller, only = nil, except = nil, constraints = {} of String => Regex) #

[View source]
macro route(verb, resource, controller, action, constraints = {} of String => Regex) #

[View source]
macro trace(*args) #

[View source]