1
0

Pass ListLastNSongs to an Index template in handlers.go.

This commit is contained in:
Alexander Andreev 2023-02-07 02:46:10 +04:00
parent ac3e2b8e92
commit 6d26d695ec
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -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) {