Robots handler removed.
This commit is contained in:
parent
35c8a3e469
commit
6155b593b2
@ -40,11 +40,6 @@ func (h *RadioHandlers) AssetsFS() http.FileSystem {
|
|||||||
return web.Assets()
|
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) {
|
func (h *RadioHandlers) Index(w http.ResponseWriter, r *http.Request) {
|
||||||
status, err := radio.IcecastGetStatus(h.conf.Icecast.URL)
|
status, err := radio.IcecastGetStatus(h.conf.Icecast.URL)
|
||||||
if err != nil {
|
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)
|
status, err := radio.IcecastGetStatus(h.conf.Icecast.URL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
h.logErr.Println("cannot retrieve Icecast status:", err)
|
h.logErr.Println("cannot retrieve Icecast status:", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user