annotation Athena::Routing::Controller
Overview
Defines options that affect the whole controller.
Fields
- prefix : String - Apply a prefix to all actions within
self
.
Example
@[Athena::Routing::Controller(prefix: "calendar")]
class CalendarController < Athena::Routing::ClassController
# The rotue of this action would be `GET /calendar/events`
@[Athena::Routing::Get(path: "events")]
def self.events : String
"events"
end
end