1
0

Added a /mostlistenedsong endpoint.

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

View File

@ -63,6 +63,8 @@ func main() {
r.Handler(http.MethodGet, "/status", djh.Status) r.Handler(http.MethodGet, "/status", djh.Status)
r.Handler(http.MethodGet, "/mostlistenedsong", djh.MostListenedSong)
srv := ihttp.NewHttpServer(r) srv := ihttp.NewHttpServer(r)
if err := srv.Start(*listenAddress); err != nil { if err := srv.Start(*listenAddress); err != nil {