Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
4934:c6af373b0832 | 4935:c64dba002726 |
---|---|
22 ) | 22 ) |
23 | 23 |
24 func published(req *http.Request) (mw.JSONResult, error) { | 24 func published(req *http.Request) (mw.JSONResult, error) { |
25 return mw.JSONResult{ | 25 return mw.JSONResult{ |
26 Result: struct { | 26 Result: struct { |
27 Internal []models.IntEntry `json:"internal"` | 27 Internal []models.IntEntry `json:"internal"` |
28 External []models.ExtEntry `json:"external"` | 28 LayerGroups []models.LayerGroup `json:"layer-groups"` |
29 External []models.ExtEntry `json:"external"` | |
29 }{ | 30 }{ |
30 Internal: models.InternalServices.Filter(models.InternalAll), | 31 Internal: models.InternalServices.Filter(models.InternalAll), |
31 External: models.ExternalServices.Filter(models.ExternalAll), | 32 LayerGroups: models.InternalServices.LayerGroups(), |
33 External: models.ExternalServices.Filter(models.ExternalAll), | |
32 }, | 34 }, |
33 }, nil | 35 }, nil |
34 } | 36 } |