annotation Athena::Routing::Get

Overview

Defines a GET endpoint.

A corresponding HEAD endpoint is also defined.

Fields

Example

@[ART::Get(path: "/users/:id")]
def get_user(id : Int32) : Nil
end

Defined in:

annotations.cr