From 6d26d695ec7a8a8bcdeccfa5481fdcabff9fdd5b Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 7 Feb 2023 02:46:10 +0400 Subject: [PATCH] Pass ListLastNSongs to an Index template in handlers.go. --- internal/http/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/handlers.go b/internal/http/handlers.go index f64f4e7..32f9eec 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -51,7 +51,7 @@ func (h *Handlers) Index(w http.ResponseWriter, r *http.Request) { } } - web.Index(utils.MainSite(r.Host), status, &songs, w) + web.Index(utils.MainSite(r.Host), h.conf.ListLastNSongs, status, &songs, w) } func (h *Handlers) Status(w http.ResponseWriter, r *http.Request) {