module Route

Defined in:

route.cr
route/exception/route_not_found.cr
route/handlers/profiler.cr
route/handlers/router.cr
route/utils/renderer.cr
route/version.cr

Constant Summary

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

Supported http methods

VERSION = "0.1.8"

Instance Method Summary

Macro Summary

Instance Method Detail

def delete(path : String, api : API) #

[View source]
def draw(route_handler, &) #

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

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

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

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

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

[View source]

Macro Detail

macro def_view(view, file, props) #

[View source]
macro def_view(view, file, **props) #

[View source]
macro render_view(view, *vals) #

[View source]