1
0

Removed Sub for a /playlist endpoint.

This commit is contained in:
Alexander Andreev 2023-10-02 02:08:16 +04:00
parent 3ed0f7b62a
commit 7e4ca6990b
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -56,8 +56,7 @@ func main() {
s.Handler(http.MethodPost, "/", djh.ListenersInc) s.Handler(http.MethodPost, "/", djh.ListenersInc)
s.Handler(http.MethodDelete, "/", djh.ListenersDec) s.Handler(http.MethodDelete, "/", djh.ListenersDec)
s = r.Sub("/playlist") r.Handler(http.MethodGet, "/playlist", djh.PlaylistNext)
s.Handler(http.MethodGet, "/", djh.PlaylistNext)
r.Handler(http.MethodGet, "/song", djh.Song) r.Handler(http.MethodGet, "/song", djh.Song)
r.Handler(http.MethodGet, "/songs", djh.Songs) r.Handler(http.MethodGet, "/songs", djh.Songs)