Mercurial > gemma
comparison pkg/controllers/publish.go @ 474:11d80120ed3d
Renamed published services to internal services to be more symmetrical to external services.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 23 Aug 2018 13:32:16 +0200 |
parents | b2dea4e56ff1 |
children | b2dc9c2f69e0 |
comparison
equal
deleted
inserted
replaced
473:b2dea4e56ff1 | 474:11d80120ed3d |
---|---|
8 ) | 8 ) |
9 | 9 |
10 func published(_ interface{}, req *http.Request, _ *sql.DB) (jr JSONResult, err error) { | 10 func published(_ interface{}, req *http.Request, _ *sql.DB) (jr JSONResult, err error) { |
11 jr = JSONResult{ | 11 jr = JSONResult{ |
12 Result: struct { | 12 Result: struct { |
13 Internal []models.PubEntry `json:"internal"` | 13 Internal []models.IntEntry `json:"internal"` |
14 External []models.ExtEntry `json:"external"` | 14 External []models.ExtEntry `json:"external"` |
15 }{ | 15 }{ |
16 Internal: models.PublishedServices.Filter(models.PublishedAll), | 16 Internal: models.InternalServices.Filter(models.InternalAll), |
17 External: models.ExternalServices.Filter(models.ExternalAll), | 17 External: models.ExternalServices.Filter(models.ExternalAll), |
18 }, | 18 }, |
19 } | 19 } |
20 return | 20 return |
21 } | 21 } |