'Return a list of endpoints available to the token.'

@controller.v2_deprecated
def endpoints(self, request, token_id):

    self.assert_admin(request)
    token_data = self.token_provider_api.validate_token(token_id)
    token_ref = token_model.KeystoneToken(token_id, token_data)
    catalog_ref = None
    if token_ref.project_id:
        catalog_ref = self.catalog_api.get_catalog(token_ref.user_id, token_ref.project_id)
    return Auth.format_endpoint_list(catalog_ref)
