From 82ecf0f5d1b38d6ca9b7ee6c91a4ae9717a9e684 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sun, 22 Mar 2026 07:06:50 +0000 Subject: [PATCH] Add URL for sending message to the list of URLs we give out --- api/user.go | 6 ++++-- html/url.go | 11 +++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/api/user.go b/api/user.go index eb7676c4..532f1568 100644 --- a/api/user.go +++ b/api/user.go @@ -10,7 +10,8 @@ import ( ) type contentURLAPI struct { - Communication string `json:"communication"` + Communication string `json:"communication"` + PublicreportMessage string `json:"publicreport_message"` } type contentURLs struct { API contentURLAPI `json:"api"` @@ -32,7 +33,8 @@ func getUserSelf(ctx context.Context, r *http.Request, user platform.User, query Self: user, URLs: contentURLs{ API: contentURLAPI{ - Communication: urls.API.Communication, + Communication: urls.API.Communication, + PublicreportMessage: urls.API.Publicreport.Message, }, Tegola: urls.Tegola, }, diff --git a/html/url.go b/html/url.go index 05f54a07..b1f65978 100644 --- a/html/url.go +++ b/html/url.go @@ -34,6 +34,7 @@ func NewContentURL() ContentURL { type contentURLAPI struct { Communication string + Publicreport contentURLAPIPublicreport } func newContentURLAPI() contentURLAPI { @@ -42,6 +43,16 @@ func newContentURLAPI() contentURLAPI { } } +type contentURLAPIPublicreport struct { + Message string +} + +func newContentURLAPIPublicreport() contentURLAPIPublicreport { + return contentURLAPIPublicreport{ + Message: config.MakeURLNidus("/api/publicreport/message"), + } +} + type contentURLConfiguration struct { ArcGIS string Fieldseeker string