router_api.go: expose /api/comment/count endpoint
This commit is contained in:
parent
283a32e2bb
commit
988a9fb1a1
@ -31,6 +31,7 @@ func apiRouterInit(router *mux.Router) error {
|
|||||||
|
|
||||||
router.HandleFunc("/api/comment/new", commentNewHandler).Methods("POST")
|
router.HandleFunc("/api/comment/new", commentNewHandler).Methods("POST")
|
||||||
router.HandleFunc("/api/comment/list", commentListHandler).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/vote", commentVoteHandler).Methods("POST")
|
||||||
router.HandleFunc("/api/comment/approve", commentApproveHandler).Methods("POST")
|
router.HandleFunc("/api/comment/approve", commentApproveHandler).Methods("POST")
|
||||||
router.HandleFunc("/api/comment/delete", commentDeleteHandler).Methods("POST")
|
router.HandleFunc("/api/comment/delete", commentDeleteHandler).Methods("POST")
|
||||||
|
Loading…
Reference in New Issue
Block a user