api: add email moderation

This commit is contained in:
Adhityaa Chandrasekar
2019-02-18 16:43:18 -05:00
parent e1c94ecf15
commit 63c4da0b8d
3 changed files with 69 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ func apiRouterInit(router *mux.Router) error {
router.HandleFunc("/api/email/get", emailGetHandler).Methods("POST")
router.HandleFunc("/api/email/update", emailUpdateHandler).Methods("POST")
router.HandleFunc("/api/email/moderate", emailModerateHandler).Methods("GET")
router.HandleFunc("/api/oauth/google/redirect", googleRedirectHandler).Methods("GET")
router.HandleFunc("/api/oauth/google/callback", googleCallbackHandler).Methods("GET")