Mercurial > gemma
diff pkg/controllers/publish.go @ 4935:c64dba002726 fairway-marks-import
Load and prepare data models for layer groups. TODO: Feed config to GeoServer.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 16 Feb 2020 15:16:22 +0100 |
parents | 4394daeea96a |
children | 2dd155cc95ec |
line wrap: on
line diff
--- a/pkg/controllers/publish.go Sat Feb 15 21:29:38 2020 +0100 +++ b/pkg/controllers/publish.go Sun Feb 16 15:16:22 2020 +0100 @@ -24,11 +24,13 @@ func published(req *http.Request) (mw.JSONResult, error) { return mw.JSONResult{ Result: struct { - Internal []models.IntEntry `json:"internal"` - External []models.ExtEntry `json:"external"` + Internal []models.IntEntry `json:"internal"` + LayerGroups []models.LayerGroup `json:"layer-groups"` + External []models.ExtEntry `json:"external"` }{ - Internal: models.InternalServices.Filter(models.InternalAll), - External: models.ExternalServices.Filter(models.ExternalAll), + Internal: models.InternalServices.Filter(models.InternalAll), + LayerGroups: models.InternalServices.LayerGroups(), + External: models.ExternalServices.Filter(models.ExternalAll), }, }, nil }