map_routes function

Map a set of routes