diff options
| author | Jeff Carr <[email protected]> | 2024-10-22 19:51:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-22 19:51:01 -0500 |
| commit | a5a972e2f41c9f79938f4779027c62eebeb45704 (patch) | |
| tree | 130c9e147cb28a0c61e12cee386c1fd35d8decab /http.go | |
| parent | 525362fcc772f8edfa5fe3aada91fc7fe17c8030 (diff) | |
allow trigger of saving the config
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -44,9 +44,23 @@ func okHandler(w http.ResponseWriter, r *http.Request) { } if tmp == "/favicon.ico" { + // w.Header().Set("Content-Type", "image/svg+xml") + w.Header().Set("Content-Type", "image/png") writeFile(w, "ipv6.png") 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" { b, s := clusterHealthy() if b { |
