first draft of a new server interface

This commit is contained in:
Tim Möhlmann 2023-09-04 23:33:51 +03:00
parent daf82a5e04
commit d6a9c0bbb9
9 changed files with 481 additions and 9 deletions

View file

@ -41,9 +41,9 @@ func ReadyStorage(s Storage) ProbesFn {
}
func ok(w http.ResponseWriter) {
httphelper.MarshalJSON(w, status{"ok"})
httphelper.MarshalJSON(w, Status{"ok"})
}
type status struct {
type Status struct {
Status string `json:"status,omitempty"`
}