From 7e4ca6990bb01d440b082ed8c43f0c5a5bebea41 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 2 Oct 2023 02:08:16 +0400 Subject: [PATCH] Removed Sub for a /playlist endpoint. --- cmd/dwelling-radiodj/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/dwelling-radiodj/main.go b/cmd/dwelling-radiodj/main.go index d754e8c..0cb45c1 100644 --- a/cmd/dwelling-radiodj/main.go +++ b/cmd/dwelling-radiodj/main.go @@ -56,8 +56,7 @@ func main() { s.Handler(http.MethodPost, "/", djh.ListenersInc) s.Handler(http.MethodDelete, "/", djh.ListenersDec) - s = r.Sub("/playlist") - s.Handler(http.MethodGet, "/", djh.PlaylistNext) + r.Handler(http.MethodGet, "/playlist", djh.PlaylistNext) r.Handler(http.MethodGet, "/song", djh.Song) r.Handler(http.MethodGet, "/songs", djh.Songs)