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)
|
||||
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/bash
|
||||
go build -o app && rm -fr app && echo "build test passed" || echo "build test FAILED!"
|
||||
Reference in New Issue
Block a user