Mercurial > gemma
diff pkg/controllers/geostyling.go @ 914:4bf3a3a20ce1 geo-style
Finished direct updating when style is uploaded via controller.
Still needs testing.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 03 Oct 2018 02:04:20 +0200 |
parents | 876d1f5433be |
children | a244b18cb916 |
line wrap: on
line diff
--- a/pkg/controllers/geostyling.go Tue Oct 02 23:29:55 2018 +0200 +++ b/pkg/controllers/geostyling.go Wed Oct 03 02:04:20 2018 +0200 @@ -7,9 +7,10 @@ "log" "net/http" + "github.com/gorilla/mux" + "gemma.intevation.de/gemma/pkg/geoserver" "gemma.intevation.de/gemma/pkg/models" - "github.com/gorilla/mux" ) const ( @@ -35,7 +36,9 @@ func supportedWMSFeature(name string) bool { return len(models.InternalServices.Filter( - models.IntAnd(models.IntWMS, models.IntByName(name)))) > 0 + models.IntAnd( + models.IntWMS, + models.IntByName(name)))) > 0 } func uploadStyle(rw http.ResponseWriter, req *http.Request) { @@ -66,4 +69,7 @@ } geoserver.ReconfigureStyle(feature) + + // Nothing to return + rw.WriteHeader(http.StatusNoContent) }