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:
parent
eb65071b51
commit
1599d502c1
@ -75,10 +75,10 @@ func main() {
|
|||||||
s = r.Sub("/api")
|
s = r.Sub("/api")
|
||||||
|
|
||||||
s.Handler(http.MethodGet, "/playlist", djh.PlaylistNext)
|
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, "/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)
|
srv := ihttp.NewHttpServer(r)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user