update 'update' (PUT) quote method

This commit is contained in:
Odweta
2026-03-19 12:23:17 +01:00
parent 4d5f648313
commit 6cd68a6725
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ func updateQuote(w http.ResponseWriter, r *http.Request) {
}
// return updated object
q.ID = id
q.Id = id
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(q)
+2
View File
@@ -0,0 +1,2 @@
#!/usr/bin/bash
go build -o app && rm -fr app && echo "build test passed" || echo "build test FAILED!"