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
|
@ -38,3 +38,12 @@ func GetArtist(id string) *model.Artist {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func GetTrack(id string) *model.Track {
|
||||
for _, track := range Tracks {
|
||||
if track.ID == id {
|
||||
return track
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue