convert routes to yaml config