Mercurial > gemma
view 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 |
line wrap: on
line source
package controllers import ( "database/sql" "net/http" "gemma.intevation.de/gemma/pkg/models" ) func published(_ interface{}, req *http.Request, _ *sql.DB) (jr JSONResult, err error) { jr = JSONResult{ Result: struct { Internal []models.IntEntry `json:"internal"` External []models.ExtEntry `json:"external"` }{ Internal: models.InternalServices.Filter(models.InternalAll), External: models.ExternalServices.Filter(models.ExternalAll), }, } return }