annotation Athena::Routing::Route

Overview

Defines an endpoint with an arbitrary HTTP method. Can be used for defining non-standard HTTP method routes.

Fields

Example

@[ART::Route("/some/path", method: "TRACE")]
def trace_route : Nil
end

Defined in:

annotations.cr