annotation Athena::Routing::Controller

Overview

Defines options that affect the whole controller.

Fields

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

Defined in:

routing.cr