Add a getRoutes method

I'm in need for a getRoutes method in order to create an SPA using AngularJS (need to loop over all the routes to add them to the angular routing system)