Add URL for sending message to the list of URLs we give out

This commit is contained in:
Eli Ribble 2026-03-22 07:06:50 +00:00
parent 9c56f148e4
commit 82ecf0f5d1
No known key found for this signature in database
2 changed files with 15 additions and 2 deletions

View file

@ -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,
},

View file

@ -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