struct Amber::DSL::Router

Defined in:

amber/dsl/router.cr

Constant Summary

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

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(router : Amber::Router::Router, valve : Symbol, scope : Amber::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 : Amber::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]