func RestRestoreStatus(w *rest.ResponseWriter, r *rest.Request, client *node.ControlClient) { restoreStatus := "" err := client.BackupStatus(0, &restoreStatus) if err != nil { glog.Errorf("Unexpected error during restore status: %v", err) writeJSON(w, &simpleResponse{err.Error(), homeLink()}, http.StatusInternalServerError) return } w.WriteJson(&simpleResponse{restoreStatus, servicesLinks()}) }