Added a getEvents function, and a dummy call from routes