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
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue