Class: RailsEventStore::Browser::EventsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/rails_event_store/browser/events_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



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