Add organization and pesticide configuration pages

This commit is contained in:
Eli Ribble 2026-03-22 17:40:40 +00:00
parent bcde604690
commit 71ffa13167
No known key found for this signature in database
7 changed files with 783 additions and 49 deletions

View file

@ -43,6 +43,16 @@ func Router() chi.Router {
r.Method("GET", "/", authenticatedHandler(getRoot))
r.Method("GET", "/communication", authenticatedHandler(getRoot))
r.Method("GET", "/configuration", authenticatedHandler(getRoot))
r.Method("GET", "/configuration/integration", authenticatedHandler(getRoot))
r.Method("GET", "/configuration/integration/arcgis", authenticatedHandler(getRoot))
r.Method("GET", "/configuration/organization", authenticatedHandler(getRoot))
r.Method("GET", "/configuration/pesticide", authenticatedHandler(getRoot))
r.Method("GET", "/configuration/pesticide/add", authenticatedHandler(getRoot))
r.Method("GET", "/configuration/upload", authenticatedHandler(getRoot))
r.Method("GET", "/configuration/upload/pool", authenticatedHandler(getRoot))
r.Method("GET", "/configuration/upload/pool/custom", authenticatedHandler(getRoot))
r.Method("GET", "/configuration/upload/pool/flyover", authenticatedHandler(getRoot))
r.Method("GET", "/configuration/upload/{id}", authenticatedHandler(getRoot))
r.Method("GET", "/configuration/user", authenticatedHandler(getRoot))
r.Method("GET", "/configuration/user/add", authenticatedHandler(getRoot))
r.Method("GET", "/intelligence", authenticatedHandler(getRoot))
@ -54,19 +64,9 @@ func Router() chi.Router {
r.Method("GET", "/admin", authenticatedHandler(getAdminDash))
r.Method("GET", "/cell/{cell}", authenticatedHandler(getCellDetails))
r.Method("GET", "/configuration/integration", authenticatedHandler(getConfigurationIntegration))
r.Method("GET", "/configuration/integration/arcgis", authenticatedHandler(getConfigurationIntegrationArcgis))
r.Method("POST", "/configuration/integration/arcgis", authenticatedHandlerPost(postConfigurationIntegrationArcgis))
r.Method("GET", "/configuration/organization", authenticatedHandler(getConfigurationOrganization))
r.Method("GET", "/configuration/pesticide", authenticatedHandler(getConfigurationPesticide))
r.Method("GET", "/configuration/pesticide/add", authenticatedHandler(getConfigurationPesticideAdd))
r.Method("GET", "/configuration/upload", authenticatedHandler(getUploadList))
r.Method("GET", "/configuration/upload/pool", authenticatedHandler(getUploadPool))
r.Method("GET", "/configuration/upload/pool/flyover", authenticatedHandler(getUploadPoolFlyoverCreate))
r.Method("POST", "/configuration/upload/pool/flyover", authenticatedHandlerPostMultipart(postUploadPoolFlyoverCreate))
r.Method("GET", "/configuration/upload/pool/custom", authenticatedHandler(getUploadPoolCustomCreate))
r.Method("POST", "/configuration/upload/pool/custom", authenticatedHandlerPostMultipart(postUploadPoolCustomCreate))
r.Method("GET", "/configuration/upload/{id}", authenticatedHandler(getUploadByID))
r.Method("POST", "/configuration/upload/{id}/commit", authenticatedHandlerPost(postUploadCommit))
r.Method("POST", "/configuration/upload/{id}/discard", authenticatedHandlerPost(postUploadDiscard))
r.Method("GET", "/download", authenticatedHandler(getDownloadList))