This commit is contained in:
Deluan
2016-03-02 13:18:39 -05:00
parent 9d41f5a39f
commit 4843ccb46c
42 changed files with 150 additions and 160 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
package conf
import (
"github.com/deluan/gosonic/utils"
"github.com/deluan/gosonic/persistence"
"github.com/deluan/gosonic/domain"
"github.com/deluan/gosonic/persistence"
"github.com/deluan/gosonic/utils"
)
func init () {
func init() {
utils.DefineSingleton(new(domain.ArtistIndexRepository), persistence.NewArtistIndexRepository)
utils.DefineSingleton(new(domain.PropertyRepository), persistence.NewPropertyRepository)
utils.DefineSingleton(new(domain.MediaFolderRepository), persistence.NewMediaFolderRepository)
+1 -1
View File
@@ -40,4 +40,4 @@ func mapFilters() {
}
beego.InsertFilter("/rest/*", beego.BeforeRouter, ValidateRequest)
}
}