api,db: add comments count endpoint

Closes https://gitlab.com/commento/commento-ce/issues/27
This commit is contained in:
Adhityaa Chandrasekar
2018-09-23 00:40:06 -04:00
parent 299649cea2
commit 330131f390
6 changed files with 118 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ func pageUpdate(p page) error {
return errorMissingField
}
// fields to not update:
// commentCount
statement := `
INSERT INTO
pages (domain, path, isLocked)