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