Setting webConfiguration on REST PUT to /api
This commit is contained in:
parent
f534d8817f
commit
55a50c5ab7
1 changed files with 1 additions and 0 deletions
1
web.go
1
web.go
|
@ -35,6 +35,7 @@ func (provider *WebProvider) Provide(configurationChan chan<- configMessage) {
|
||||||
b, _ := ioutil.ReadAll(r.Body)
|
b, _ := ioutil.ReadAll(r.Body)
|
||||||
err := json.Unmarshal(b, configuration)
|
err := json.Unmarshal(b, configuration)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
webConfiguration = configuration
|
||||||
configurationChan <- configMessage{"web", configuration}
|
configurationChan <- configMessage{"web", configuration}
|
||||||
GetConfigHandler(rw, r)
|
GetConfigHandler(rw, r)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue