route to approvals function

pull/157/head
Karolis Rusenas 2018-03-11 13:14:09 +00:00
parent cf7b092822
commit 895623957d
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ func (s *TriggerServer) registerRoutes(mux *mux.Router) {
// approvals
mux.HandleFunc("/v1/approvals", s.approvalsHandler).Methods("GET", "OPTIONS")
// approving
mux.HandleFunc("/v1/approvals", s.approvalApproveHandler).Methods("POST", "OPTIONS")
mux.HandleFunc("/v1/approvals/{id}", s.approvalDeleteHandler).Methods("DELETE", "OPTIONS")
// native webhooks handler