class Qleex::Router

Included Modules

Defined in:

router.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(basePath : String = "") #

[View source]

Instance Method Detail

def addRoute(method : String, path : String, func : RouterMethod) #

[View source]
def call(context : Context) #

[View source]
def delete(path : String | Array(String), func : RouterMethod) #

[View source]
def get(path : String | Array(String), func : RouterMethod) #

[View source]
def options(path : String | Array(String), func : RouterMethod) #

[View source]
def patch(path : String | Array(String), func : RouterMethod) #

[View source]
def post(path : String | Array(String), func : RouterMethod) #

[View source]
def put(path : String | Array(String), func : RouterMethod) #

[View source]
def route(methods : String | Array(String), paths : String | Array(String), func : RouterMethod) #

[View source]