Change hashmap and return json to /events and /events/id.