From 988a9fb1a19a424a8d0c21c7ac27b48ece4aa5fd Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Sun, 23 Sep 2018 00:42:16 -0400 Subject: [PATCH] router_api.go: expose /api/comment/count endpoint --- api/router_api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/router_api.go b/api/router_api.go index 5199dc1..58ae50f 100644 --- a/api/router_api.go +++ b/api/router_api.go @@ -31,6 +31,7 @@ func apiRouterInit(router *mux.Router) error { router.HandleFunc("/api/comment/new", commentNewHandler).Methods("POST") router.HandleFunc("/api/comment/list", commentListHandler).Methods("POST") + router.HandleFunc("/api/comment/count", commentCountHandler).Methods("POST") router.HandleFunc("/api/comment/vote", commentVoteHandler).Methods("POST") router.HandleFunc("/api/comment/approve", commentApproveHandler).Methods("POST") router.HandleFunc("/api/comment/delete", commentDeleteHandler).Methods("POST")