create support for releases, artists, tracks, and credits

Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
ari melody 2024-08-03 00:27:30 +01:00
parent 442889340c
commit 9329aa9f60
19 changed files with 252 additions and 37 deletions

View file

@ -34,13 +34,15 @@ func Handler() http.Handler {
}
type IndexData struct {
Releases []musicModel.Release
Artists []musicModel.Artist
Releases []*musicModel.Release
Artists []*musicModel.Artist
Tracks []*musicModel.Track
}
serveTemplate("index.html", IndexData{
Releases: global.Releases,
Artists: global.Artists,
Tracks: global.Tracks,
}).ServeHTTP(w, r)
}))