Skip to content

annotation ActionController::Route::Filter #

define a new route that responds to websocket requests

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