From 6155b593b2a09522143e15d05963dc9bd7318868 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 24 May 2022 18:41:50 +0400 Subject: [PATCH] Robots handler removed. --- internal/handlers/handlers.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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)