From 1599d502c1423905cc371e7ee2c6c67f7209a736 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 8 Oct 2023 02:03:06 +0400 Subject: [PATCH] Decided to keep handlers for /api/{song,songs,mostlistenedsong} but disable them. Everything can be fetched at an /api/status endpoint. --- cmd/dwelling-radio/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/dwelling-radio/main.go b/cmd/dwelling-radio/main.go index 6abe4a7..55bc9be 100644 --- a/cmd/dwelling-radio/main.go +++ b/cmd/dwelling-radio/main.go @@ -75,10 +75,10 @@ func main() { s = r.Sub("/api") s.Handler(http.MethodGet, "/playlist", djh.PlaylistNext) - s.Handler(http.MethodGet, "/song", djh.Song) - s.Handler(http.MethodGet, "/songs", djh.Songs) s.Handler(http.MethodGet, "/status", djh.Status) - s.Handler(http.MethodGet, "/mostlistenedsong", djh.MostListenedSong) + // s.Handler(http.MethodGet, "/song", djh.Song) + // s.Handler(http.MethodGet, "/songs", djh.Songs) + // s.Handler(http.MethodGet, "/mostlistenedsong", djh.MostListenedSong) srv := ihttp.NewHttpServer(r)