add controversy sorting #274

This commit is contained in:
Umputun
2019-02-10 16:10:58 -06:00
parent 7128f66374
commit ef59281112
5 changed files with 57 additions and 8 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"github.com/umputun/remark/backend/app/store"
)
// GET /find?site=siteID&url=post-url&format=[tree|plain]&sort=[+/-time|+/-score]
// GET /find?site=siteID&url=post-url&format=[tree|plain]&sort=[+/-time|+/-score|+/-controversy ]
// find comments for given post. Returns in tree or plain formats, sorted
func (s *Rest) findCommentsCtrl(w http.ResponseWriter, r *http.Request) {
locator := store.Locator{SiteID: r.URL.Query().Get("site"), URL: r.URL.Query().Get("url")}