diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index 8ca9e75..71f1882 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -40,11 +40,6 @@ func (h *RadioHandlers) AssetsFS() http.FileSystem { return web.Assets() } -func (h *RadioHandlers) Robots(w http.ResponseWriter, r *http.Request) { - fc, _ := web.AssetsGetFile("web/assets/robots.txt") - w.Write(fc) -} - func (h *RadioHandlers) Index(w http.ResponseWriter, r *http.Request) { status, err := radio.IcecastGetStatus(h.conf.Icecast.URL) if err != nil { @@ -81,7 +76,7 @@ func (h *RadioHandlers) Index(w http.ResponseWriter, r *http.Request) { } } -func (h *RadioHandlers) Stats(w http.ResponseWriter, r *http.Request) { +func (h *RadioHandlers) Status(w http.ResponseWriter, r *http.Request) { status, err := radio.IcecastGetStatus(h.conf.Icecast.URL) if err != nil { h.logErr.Println("cannot retrieve Icecast status:", err)