only allow create for now
Ted Unangst tedu@tedunangst.com
Sun, 10 Mar 2024 00:34:02 -0500
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
web.go
→
web.go
@@ -820,15 +820,15 @@ return
} what := firstofmany(j, "type") switch what { - default: - dlog.Printf("saving my own xonk") + case "Create": honk := xonksaver2(user, j, serverName, true) if honk == nil { dlog.Printf("returned nil") return } - dlog.Printf("honking it") go honkworldwide(user, honk) + default: + http.Error(w, "not sure about that", http.StatusBadRequest) } }