annotation Athena::Routing::Unlink
Overview
Defines an UNLINK
endpoint.
Fields
- path :
String
- The path for the endpoint, may also be provided as the first positional argument. - name :
String
- The name of the route. Defaults to controller name + method name down snake-cased. - constraints :
Hash(String, Regex)
- A mapping between a route's path parameters and its constraints.
Example
@[ART::Unlink(path: "/users/:id")]
def unlink_user(id : Int32) : Nil
end