allow trigger of saving the config
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
525362fcc7
commit
a5a972e2f4
14
http.go
14
http.go
|
@ -44,9 +44,23 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if tmp == "/favicon.ico" {
|
if tmp == "/favicon.ico" {
|
||||||
|
// w.Header().Set("Content-Type", "image/svg+xml")
|
||||||
|
w.Header().Set("Content-Type", "image/png")
|
||||||
writeFile(w, "ipv6.png")
|
writeFile(w, "ipv6.png")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if tmp == "/goReference.svg" {
|
||||||
|
w.Header().Set("Content-Type", "image/svg+xml")
|
||||||
|
writeFile(w, "goReference.svg")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if tmp == "/writeconfig" {
|
||||||
|
writeConfigFile()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if tmp == "/uptime" {
|
if tmp == "/uptime" {
|
||||||
b, s := clusterHealthy()
|
b, s := clusterHealthy()
|
||||||
if b {
|
if b {
|
||||||
|
|
Loading…
Reference in New Issue