diff options
| author | Jeff Carr <[email protected]> | 2024-10-11 23:18:45 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-11 23:18:45 -0500 |
| commit | 3636bc167090ede51f1edb1ac3f82ba0bbe1808f (patch) | |
| tree | 2e31d2b0b418f075361c1761524b59aba7611e14 /http.go | |
| parent | e35b47fd5f098be0a7a9c4615cd1e7858251ae99 (diff) | |
persistant and dumps out vms
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -18,6 +18,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) { var tmp string tmp = cleanURL(r.URL.Path) + log.Info("Got URL:", tmp) if tmp == "/" { fmt.Fprintln(w, "OK") return @@ -31,11 +32,23 @@ func okHandler(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, j) return } + + if tmp == "/vms" { + s := poolHypervisor(hv) + fmt.Fprint(w, s) + return + } + if tmp == "/favicon.ico" { writeFile(w, "ipv6.png") return } - // used for uptime monitor checking + if tmp == "/uptime" { + writeFile(w, "uptime.html") + return + } + + // used for uptime monitor checking (like Kuma) if tmp == "/uptime" { writeFile(w, "uptime.html") return |
