class

Qleex::Router

Inherits HTTP::Handler < Reference < Object

Constructors

new(basePath : String = "")

Instance methods

addRoute(method : String, path : String, func : RouterMethod)
call(context : Context)
delete(path : String | Array(String), func : RouterMethod)
get(path : String | Array(String), func : RouterMethod)
options(path : String | Array(String), func : RouterMethod)
patch(path : String | Array(String), func : RouterMethod)
post(path : String | Array(String), func : RouterMethod)
put(path : String | Array(String), func : RouterMethod)
route(methods : String | Array(String), paths : String | Array(String), func : RouterMethod)