Swagger to deploy

This commit is contained in:
Bel LaPointe
2020-07-24 23:41:33 -06:00
parent 663579aeae
commit 4069fd822f
3 changed files with 6 additions and 5 deletions

View File

@@ -154,7 +154,7 @@ func whoDelete(namespace string, g storage.Graph, w http.ResponseWriter, r *http
return err
}
return json.NewEncoder(w).Encode(`{"status":"ok"}`)
return json.NewEncoder(w).Encode(map[string]string{"status": "ok"})
}
func whoPatch(namespace string, g storage.Graph, w http.ResponseWriter, r *http.Request) error {