update 'update' (PUT) quote method
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user