Added a new method to fetch all defined routes

I'm trying to create an SPA and for that I need to know all exposed routes. I added a getRoutes method for this purpose