mirror of https://github.com/statping/statping
parent
0bb8eeee83
commit
558372b027
|
@ -1,7 +1,6 @@
|
||||||
package handlers
|
package handlers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"github.com/hunterlong/statup/core"
|
"github.com/hunterlong/statup/core"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
@ -17,7 +16,5 @@ func IndexHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
out := index{*core.CoreApp, core.CoreApp.Services}
|
out := index{*core.CoreApp, core.CoreApp.Services}
|
||||||
first, _ := out.Services[0].LimitedHits()
|
|
||||||
fmt.Println(out.Services[0].Name, "start:", first[0].Id, "last:", first[len(first)-1].Id)
|
|
||||||
ExecuteResponse(w, r, "index.html", out)
|
ExecuteResponse(w, r, "index.html", out)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue