Added a /mostlistenedsong endpoint.
This commit is contained in:
parent
7e4ca6990b
commit
1b38c5d86c
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user