class Route::Router

Included Modules

Defined in:

route/router.cr

Constant Summary

HTTP_METHODS = ["get", "post", "put", "patch", "delete", "options"] of ::String
INSTANCE = new

Instance Method Summary

Instance Method Detail

def call(context) #

[View source]
def route_delete(path : String, api : API) #

[View source]
def route_get(path : String, api : API) #

[View source]
def route_options(path : String, api : API) #

[View source]
def route_patch(path : String, api : API) #

[View source]
def route_post(path : String, api : API) #

[View source]
def route_put(path : String, api : API) #

[View source]
def routeHandler : Router #

[View source]
def search_route(context : HTTP::Server::Context) : RouteContext | Nil #

[View source]