Moved package api to subsonic under server

This commit is contained in:
Deluan 2020-01-19 18:21:44 -05:00
parent 67eeb218c4
commit 7610b42f4b
59 changed files with 41 additions and 41 deletions

View file

@ -3,18 +3,18 @@
package main
import (
"github.com/cloudsonic/sonic-server/api"
"github.com/cloudsonic/sonic-server/engine"
"github.com/cloudsonic/sonic-server/persistence"
"github.com/cloudsonic/sonic-server/scanner"
"github.com/cloudsonic/sonic-server/server"
"github.com/cloudsonic/sonic-server/server/subsonic"
"github.com/google/wire"
)
var allProviders = wire.NewSet(
engine.Set,
scanner.New,
api.NewRouter,
subsonic.NewRouter,
persistence.Set,
)
@ -25,6 +25,6 @@ func CreateApp(musicFolder string) *server.Server {
))
}
func CreateSubsonicAPIRouter() *api.Router {
func CreateSubsonicAPIRouter() *subsonic.Router {
panic(wire.Build(allProviders))
}