Add URL for sending message to the list of URLs we give out
This commit is contained in:
parent
9c56f148e4
commit
82ecf0f5d1
2 changed files with 15 additions and 2 deletions
|
|
@ -11,6 +11,7 @@ import (
|
|||
|
||||
type contentURLAPI struct {
|
||||
Communication string `json:"communication"`
|
||||
PublicreportMessage string `json:"publicreport_message"`
|
||||
}
|
||||
type contentURLs struct {
|
||||
API contentURLAPI `json:"api"`
|
||||
|
|
@ -33,6 +34,7 @@ func getUserSelf(ctx context.Context, r *http.Request, user platform.User, query
|
|||
URLs: contentURLs{
|
||||
API: contentURLAPI{
|
||||
Communication: urls.API.Communication,
|
||||
PublicreportMessage: urls.API.Publicreport.Message,
|
||||
},
|
||||
Tegola: urls.Tegola,
|
||||
},
|
||||
|
|
|
|||
11
html/url.go
11
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue