annotation ActionController::Route::Filter

Overview

define a new route that responds to websocket requests

@[AC::Route::Filter(:before_action)]
def load_model(id : String)
  @model = MyModel.find(id)
end

Defined in:

action-controller/router/builder.cr