class Radbas::RouteCollector

Included Modules

Direct Known Subclasses

Defined in:

radbas-framework/route_collector.cr

Constructors

Instance Method Summary

Instance methods inherited from module Radbas::MiddlewareCollector

add(http_handler : HTTP::Handler) : self
add(middleware : MiddlewareLike) : self
add

Constructor Detail

def self.new(router : Routing::Router(Action), middleware : Array(MiddlewareLike), route_path : String | Nil) #

[View source]

Instance Method Detail

def delete(path : String, action : ActionLike, name : Symbol | Nil = nil) : self #

[View source]
def get(path : String, action : ActionLike, name : Symbol | Nil = nil) : self #

[View source]
def group(path : String = "", &) : self #

[View source]
def map(method : String, path : String, action : ActionLike, name : Symbol | Nil) : self #

[View source]
def options(path : String, action : ActionLike, name : Symbol | Nil = nil) : self #

[View source]
def patch(path : String, action : ActionLike, name : Symbol | Nil = nil) : self #

[View source]
def post(path : String, action : ActionLike, name : Symbol | Nil = nil) : self #

[View source]
def put(path : String, action : ActionLike, name : Symbol | Nil = nil) : self #

[View source]
def sse(path : String, handler : StreamHandlerLike, name : Symbol | Nil = nil) : self #

[View source]
def ws(path : String, handler : SocketHandlerLike, name : Symbol | Nil = nil) : self #

[View source]