added getRoutes method, allowed string parameter as route pattern for set method