Add an evidence field to compliance reports

This allows us to show a page with information about what the district
is concerned about when asking the user to fill a report.
This commit is contained in:
Eli Ribble 2026-04-21 21:35:40 +00:00
parent a0ac5c0674
commit fe2041f22b
No known key found for this signature in database
7 changed files with 99 additions and 32 deletions

View file

@ -25,7 +25,7 @@ func AddRoutes(r *mux.Router) {
r.Handle("/communication", authenticatedHandlerJSON(communication.List)).Methods("GET")
compliance_request := resource.ComplianceRequest(router)
r.Handle("/compliance-request/mailer", authenticatedHandlerJSONPost(compliance_request.CreateMailer)).Methods("POST")
r.HandleFunc("/compliance-request/image/pool/{public_id}", compliance_request.ImagePoolGet).Methods("GET")
r.HandleFunc("/compliance-request/image/pool/{public_id}", compliance_request.ImagePoolGet).Methods("GET").Name("compliance-request.image.pool.ByIDGet")
//r.HandleFunc("/compliance-request/image/pool/{public_id}", getComplianceRequestImagePool).Methods("GET")
r.Handle("/configuration/integration/arcgis", authenticatedHandlerJSONPost(postConfigurationIntegrationArcgis)).Methods("POST")
r.Handle("/events", auth.NewEnsureAuth(streamEvents)).Methods("GET")