annotation ActionController::Route::GET

Overview

define a new route that responds to "GET" requests

@[AC::Route::"GET"("/my/route/:name")]
def my_route_name(name : String) : String
  name
end

Defined in:

action-controller/router/builder.cr