Upload images on compliance report

This commit is contained in:
Eli Ribble 2026-04-10 22:34:14 +00:00
parent 730f40956f
commit 4060e7ddcd
No known key found for this signature in database
5 changed files with 89 additions and 9 deletions

View file

@ -83,6 +83,7 @@ func AddRoutes(r *mux.Router) {
publicreport := resource.Publicreport(router)
r.Handle("/publicreport/{id}", handlerJSON(publicreport.ByID)).Methods("GET").Name("publicreport.ByIDGet")
r.Handle("/publicreport/{id}", handlerJSONPut(publicreport.Update)).Methods("PUT")
r.Handle("/publicreport/{id}/image", handlerFormPost(publicreport.ImageCreate)).Methods("POST")
publicreport_notification := resource.PublicreportNotification(router)
r.Handle("/publicreport-notification", handlerJSONPost(publicreport_notification.Create)).Methods("POST")