Add initial lob hook receiver

This commit is contained in:
Eli Ribble 2026-04-21 21:55:37 +00:00
parent fe2041f22b
commit 810a13cee0
No known key found for this signature in database
2 changed files with 97 additions and 0 deletions

View file

@ -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")