Add Communication API to user URLs
We don't want to build URLs anywhere but in the server.
This commit is contained in:
parent
31a9490210
commit
46edbbae74
2 changed files with 20 additions and 1 deletions
12
html/url.go
12
html/url.go
|
|
@ -7,6 +7,7 @@ import (
|
|||
)
|
||||
|
||||
type ContentURL struct {
|
||||
API contentURLAPI
|
||||
Configuration contentURLConfiguration
|
||||
OAuthRefreshArcGIS string
|
||||
RMO contentURLRMO
|
||||
|
|
@ -19,6 +20,7 @@ type ContentURL struct {
|
|||
|
||||
func NewContentURL() ContentURL {
|
||||
return ContentURL{
|
||||
API: newContentURLAPI(),
|
||||
Configuration: newContentURLConfiguration(),
|
||||
OAuthRefreshArcGIS: config.MakeURLNidus("/arcgis/oauth/begin"),
|
||||
RMO: newContentURLRMO(),
|
||||
|
|
@ -30,6 +32,16 @@ func NewContentURL() ContentURL {
|
|||
}
|
||||
}
|
||||
|
||||
type contentURLAPI struct {
|
||||
Communication string
|
||||
}
|
||||
|
||||
func newContentURLAPI() contentURLAPI {
|
||||
return contentURLAPI{
|
||||
Communication: config.MakeURLNidus("/api/communication"),
|
||||
}
|
||||
}
|
||||
|
||||
type contentURLConfiguration struct {
|
||||
ArcGIS string
|
||||
Fieldseeker string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue