Class: RailsEventStore::Browser::EventsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RailsEventStore::Browser::EventsController
- Defined in:
- app/controllers/rails_event_store/browser/events_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
4 5 6 7 |
# File 'app/controllers/rails_event_store/browser/events_controller.rb', line 4 def show event = event_store.read_event(event_id) render json: { data: serialize_event(event) }, content_type: 'application/vnd.api+json' end |