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

@ -24,6 +24,7 @@ func Handler() http.Handler {
return
}
}))
mux.Handle("/v1/music/", http.StripPrefix("/v1/music", music.ServeRelease()))
mux.Handle("/v1/music", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
switch r.Method {
@ -39,5 +40,8 @@ func Handler() http.Handler {
}
}))
mux.Handle("/v1/musiccredit", CreateCredit())
mux.Handle("/v1/track", CreateTrack())
return mux
}