i think that's all the api endpoints!

Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
ari melody 2024-08-03 23:24:15 +01:00
parent 494b29def3
commit 05e16a0867
17 changed files with 810 additions and 231 deletions

View file

@ -39,6 +39,13 @@ func Handler() http.Handler {
Tracks []*musicModel.Track
}
var orphan_tracks = []*musicModel.Track{}
for _, track := range global.Tracks {
if track.Release == nil {
orphan_tracks = append(orphan_tracks, track)
}
}
serveTemplate("index.html", IndexData{
Releases: global.Releases,
Artists: global.Artists,