struct Alfodr::DSL::Router

Defined in:

alfodr/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 : Alfodr::Router::Router, valve : Symbol, scope : String) #

[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 : Alfodr::Router::Router #

def scope : String #

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

[View source]
macro route(verb, resource, controller, action) #

[View source]
macro trace(*args) #

[View source]