implement get /events and get /events/:id