improve routes.json file to handle routes AND resources