annotation ActionController::Route::POST

Overview

define a new route that responds to "POST" requests

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

Defined in:

action-controller/router/builder.cr