update rest return comment

This commit is contained in:
Umputun
2018-01-03 23:50:36 -06:00
parent 43676bc90e
commit 28741cb245
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -189,8 +189,7 @@ func (s *Server) updateCommentCtrl(w http.ResponseWriter, r *http.Request) {
}
s.respCache.Flush() // reset all caches
render.JSON(w, r, JSON{"id": id, "loc": locator, "comment": res})
render.JSON(w, r, res)
}
// DELETE /comment/{id}?site=siteID&url=post-url
+1 -1
View File
@@ -26,7 +26,7 @@ Content-Type: application/json
}
### update comment
PUT https://demo.remark42.com/api/v1/comment/fb04757c0dbbe3e77b0e85e532e259d816cbaacc?site=remark&url=https://radio-t.com/blah1
PUT https://demo.remark42.com/api/v1/comment/7b88d7a91353ab206cb63cdca18fb26bcb30205b?site=remark&url=https://radio-t.com/blah1
Content-Type: application/json
{