serve GET /config

This commit is contained in:
bel
2023-03-26 22:39:47 -06:00
parent e968ce17ce
commit 163bf2b405
2 changed files with 54 additions and 15 deletions

View File

@@ -56,7 +56,7 @@ func TestPatchConfig(t *testing.T) {
w := httptest.NewRecorder()
r := httptest.NewRequest(http.MethodPatch, "/config", strings.NewReader(c.patch))
v01.patchConfig(w, r)
v01.servePatchConfig(w, r)
if fmt.Sprintf("%+v", c.want) != fmt.Sprintf("%+v", v01.cfg) {
t.Errorf("want \n\t%+v, got \n\t%+v", c.want, v01.cfg)
}