Adds endpoint to create events