refactor templates

This commit is contained in:
sentriz
2019-06-24 21:40:48 +01:00
parent 4ed144da84
commit 58a4558d5b
11 changed files with 748 additions and 2208 deletions

View File

@@ -1,6 +1,6 @@
package server
func (s *Server) SetupSubsonic() {
func (s *Server) SetupSubsonic() error {
withWare := newChain(
s.WithLogging,
s.WithCORS,
@@ -45,4 +45,5 @@ func (s *Server) SetupSubsonic() {
s.mux.HandleFunc("/rest/getAlbumList.view", withWare(s.GetAlbumList))
s.mux.HandleFunc("/rest/search2", withWare(s.SearchTwo))
s.mux.HandleFunc("/rest/search2.view", withWare(s.SearchTwo))
return nil
}