feat: added endpoint to update list item title only

This commit is contained in:
2026-09-04 10:11:32 +02:00
parent ad8a5e3bab
commit 4cb03c6712
5 changed files with 86 additions and 4 deletions
+2 -1
View File
@@ -66,7 +66,8 @@ func NewMux(cfg Config) http.Handler {
apiMux.Handle("POST /lists/items", protected(listHandler.CreateListItem))
apiMux.Handle("DELETE /lists/items/{id}", protected(listHandler.DeleteListItem))
apiMux.Handle("PUT /lists/items", protected(listHandler.UpdateListItem))
apiMux.Handle("POST /lists/items/{id}", protected(listHandler.SetListItemCompleted))
apiMux.Handle("POST /lists/items/{id}/title", protected(listHandler.SetListItemTitle))
apiMux.Handle("POST /lists/items/{id}/complete", protected(listHandler.SetListItemCompleted))
apiMux.Handle("GET /lists/{id}", protected(listHandler.GetListItems))
mux := http.NewServeMux()