Add initial lob hook receiver
This commit is contained in:
parent
fe2041f22b
commit
810a13cee0
2 changed files with 97 additions and 0 deletions
|
|
@ -38,6 +38,9 @@ func AddRoutes(r *mux.Router) {
|
|||
lead := resource.Lead(r)
|
||||
r.Handle("/leads", authenticatedHandlerJSON(lead.List)).Methods("GET")
|
||||
r.Handle("/leads", authenticatedHandlerJSONPost(lead.Create)).Methods("POST")
|
||||
lob_hook := resource.LobHook(router)
|
||||
r.Handle("/lob/event", handlerBasic(lob_hook.Event)).Methods("POST")
|
||||
|
||||
mailer := resource.Mailer(router)
|
||||
r.Handle("/mailer", authenticatedHandlerJSONSlice(mailer.List)).Methods("GET")
|
||||
r.Handle("/mailer/{id}", authenticatedHandlerJSONPost(mailer.ByIDGet)).Methods("GET").Name("mailer.ByIDGet")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue