remove servers which don't reply
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Philipp 2021-10-04 16:23:27 +02:00
parent 28c830acfc
commit c36e6b1947
5 changed files with 32 additions and 12 deletions

View file

@ -17,6 +17,7 @@ func NewHandler(store steamServer.Store) *Handler {
h.Use(middleware.Logger)
h.Get("/favicon.ico", faviconHandler)
h.Get("/", h.Home())
h.Get("/europe", h.Europe())
h.Get("/america", h.America())
@ -32,6 +33,10 @@ type Handler struct {
store steamServer.Store
}
func faviconHandler(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "static/favicon.ico")
}
func (h *Handler) Home() http.HandlerFunc {
type data struct {
Region string