Allow checking off tasks from rendered pages

This commit is contained in:
2026-05-04 11:37:38 +02:00
parent 80f6abcbaa
commit 4c55bd050f
6 changed files with 148 additions and 1 deletions
+4
View File
@@ -249,6 +249,10 @@ func (h *handler) handlePost(w http.ResponseWriter, r *http.Request, urlPath, fs
h.handleMove(w, r, urlPath, fsPath, query.Get("move"))
return
}
if query.Has("toggle") {
h.handleToggle(w, r, fsPath)
return
}
if err := r.ParseForm(); err != nil {
http.Error(w, "bad request", http.StatusBadRequest)