at least it 501s nicely

This commit is contained in:
bel
2023-10-29 09:33:53 -06:00
parent 2f21a23a33
commit 4de3b4a822
2 changed files with 10 additions and 3 deletions

View File

@@ -96,6 +96,14 @@ func Main() {
})
return
case "/api/lastnlines":
if r.Method != http.MethodPut {
http.NotFound(w, r)
return
}
var lines []string
if err := json.NewDecoder(r.Body).Decode(&lines); err != nil {
panic(err)
}
http.Error(w, "not done yet", http.StatusNotImplemented)
return
}