add getArtistInfo stub

This commit is contained in:
sentriz
2020-06-13 16:03:10 +01:00
parent 56b43f33c9
commit 431641b83a
3 changed files with 5 additions and 4 deletions

View File

@@ -204,3 +204,7 @@ func (c *Controller) ServeSearchTwo(r *http.Request) *spec.Response {
sub.SearchResultTwo = results sub.SearchResultTwo = results
return sub return sub
} }
func (c *Controller) ServeGetArtistInfo(r *http.Request) *spec.Response {
return spec.NewResponse()
}

View File

@@ -1,4 +0,0 @@
package ctrlsubsonic
// NOTE: when these are implemented, they should be moved to their
// respective _by_folder or _by_tag file

View File

@@ -179,6 +179,7 @@ func setupSubsonic(r *mux.Router, ctrl *ctrlsubsonic.Controller) {
r.Handle("/getAlbumList{_:(?:\\.view)?}", ctrl.H(ctrl.ServeGetAlbumList)) r.Handle("/getAlbumList{_:(?:\\.view)?}", ctrl.H(ctrl.ServeGetAlbumList))
r.Handle("/search2{_:(?:\\.view)?}", ctrl.H(ctrl.ServeSearchTwo)) r.Handle("/search2{_:(?:\\.view)?}", ctrl.H(ctrl.ServeSearchTwo))
r.Handle("/getGenres{_:(?:\\.view)?}", ctrl.H(ctrl.ServeGetGenres)) r.Handle("/getGenres{_:(?:\\.view)?}", ctrl.H(ctrl.ServeGetGenres))
r.Handle("/getArtistInfo{_:(?:\\.view)?}", ctrl.H(ctrl.ServeGetArtistInfo))
// ** begin unimplemented // ** begin unimplemented
// middlewares should be run for not found handler // middlewares should be run for not found handler
// https://github.com/gorilla/mux/issues/416 // https://github.com/gorilla/mux/issues/416