Setting webConfiguration on REST PUT to /api

This commit is contained in:
Thorhallur Sverrisson 2015-09-22 19:49:42 +00:00
parent f534d8817f
commit 55a50c5ab7

1
web.go
View file

@ -35,6 +35,7 @@ func (provider *WebProvider) Provide(configurationChan chan<- configMessage) {
b, _ := ioutil.ReadAll(r.Body)
err := json.Unmarshal(b, configuration)
if err == nil {
webConfiguration = configuration
configurationChan <- configMessage{"web", configuration}
GetConfigHandler(rw, r)
} else {