ctrlsubsonic: implement getGenres

This commit is contained in:
Duncan Overbruck
2020-03-02 16:25:50 +01:00
parent ae31d4a893
commit 14d68f748c
5 changed files with 31 additions and 16 deletions

View File

@@ -1,17 +1,4 @@
package ctrlsubsonic
import (
"net/http"
"senan.xyz/g/gonic/server/ctrlsubsonic/spec"
)
// NOTE: when these are implemented, they should be moved to their
// respective _by_folder or _by_tag file
func (c *Controller) ServeGetGenres(r *http.Request) *spec.Response {
sub := spec.NewResponse()
sub.Genres = &spec.Genres{}
sub.Genres.List = []*spec.Genre{}
return sub
}