module Router

Defined in:

handler.cr
router.cr

Constant Summary

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

Instance Method Summary

Instance Method Detail

def delete(path : String, &block : Action) #

[View source]
def get(path : String, &block : Action) #

[View source]
def options(path : String, &block : Action) #

[View source]
def patch(path : String, &block : Action) #

[View source]
def post(path : String, &block : Action) #

[View source]
def put(path : String, &block : Action) #

[View source]
def route_handler : RouteHandler #

[View source]