summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-16 21:47:38 -0500
committerJeff Carr <[email protected]>2024-10-16 21:47:38 -0500
commit25b07096685eef2582f3dac34093dc8b0973ffa6 (patch)
treeacb90d761d59002bb6980667b668f7cd0184b26a /http.go
parent99df37ee8a70722ff992d8be50542b23d578cf18 (diff)
favicon
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'http.go')
-rw-r--r--http.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/http.go b/http.go
index 6e47c28..510d7a9 100644
--- a/http.go
+++ b/http.go
@@ -20,16 +20,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
var tmp string
tmp = cleanURL(r.URL.Path)
- // list all the droplets
- if tmp == "/droplets" {
- log.Info("Handling URL:", tmp)
- for _, d := range me.droplets {
- dur := time.Since(d.lastpoll) // Calculate the elapsed time
- fmt.Fprintln(w, d.Hostname, d.hname, shell.FormatDuration(dur))
- }
- return
- }
-
// is the cluster running what it should?
if tmp == "/droplets" {
for _, d := range me.droplets {
@@ -94,7 +84,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
}
log.Warn("BAD URL =", tmp)
- fmt.Fprintln(w, "BAD ZOOT")
+ fmt.Fprintln(w, "BAD URL", tmp)
// badurl(w, r.URL.String())
// fmt.Fprintln(w, "BAD", tmp)
}