1
0

Robots handler removed.

This commit is contained in:
Alexander Andreev 2022-05-24 18:41:50 +04:00
parent 35c8a3e469
commit 6155b593b2
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

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