create support for releases, artists, tracks, and credits
Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
parent
442889340c
commit
9329aa9f60
19 changed files with 252 additions and 37 deletions
|
@ -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)
|
||||
}))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue