1
0

Decided to keep handlers for /api/{song,songs,mostlistenedsong} but disable them. Everything can be fetched at an /api/status endpoint.

This commit is contained in:
Alexander Andreev 2023-10-08 02:03:06 +04:00
parent eb65071b51
commit 1599d502c1
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

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