'Fetch the proxy\'s routes.'

@gen.coroutine
def get_all_routes(self, client=None):

    resp = (yield self.api_request('', client=client))
    chp_routes = json.loads(resp.body.decode('utf8', 'replace'))
    all_routes = {}
    for (chp_path, chp_data) in chp_routes.items():
        routespec = self._routespec_from_chp_path(chp_path)
        if ('jupyterhub' not in chp_data):
            self.log.debug('Omitting    non-jupyterhub    route    %r', routespec)
            continue
        all_routes[routespec] = self._reformat_routespec(routespec, chp_data)
    return all_routes
