Pass ListLastNSongs to an Index template in handlers.go.
This commit is contained in:
parent
ac3e2b8e92
commit
6d26d695ec
@ -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) {
|
func (h *Handlers) Status(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user