get routes from config