From 1b38c5d86c37ad14ca9147fea06212bfcb42a245 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 2 Oct 2023 02:08:38 +0400 Subject: [PATCH] Added a /mostlistenedsong endpoint. --- cmd/dwelling-radiodj/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/dwelling-radiodj/main.go b/cmd/dwelling-radiodj/main.go index 0cb45c1..01d1803 100644 --- a/cmd/dwelling-radiodj/main.go +++ b/cmd/dwelling-radiodj/main.go @@ -63,6 +63,8 @@ func main() { r.Handler(http.MethodGet, "/status", djh.Status) + r.Handler(http.MethodGet, "/mostlistenedsong", djh.MostListenedSong) + srv := ihttp.NewHttpServer(r) if err := srv.Start(*listenAddress); err != nil {