pull/10/head v0.27.7
Hunter Long 2018-06-29 18:45:04 -07:00
parent 0bb8eeee83
commit 558372b027
1 changed files with 0 additions and 3 deletions

View File

@ -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)
} }