i think that's all the api endpoints!
Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
parent
494b29def3
commit
05e16a0867
17 changed files with 810 additions and 231 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue