class Route::Router
- Route::Router
- Reference
- Object
Included Modules
- HTTP::Handler
Defined in:
route/router.crConstant Summary
-
HTTP_METHODS =
["get", "post", "put", "patch", "delete", "options"] of ::String
-
INSTANCE =
new
Instance Method Summary
- #call(context)
- #route_delete(path : String, api : API)
- #route_get(path : String, api : API)
- #route_options(path : String, api : API)
- #route_patch(path : String, api : API)
- #route_post(path : String, api : API)
- #route_put(path : String, api : API)
- #routeHandler : Router
- #search_route(context : HTTP::Server::Context) : RouteContext | Nil