Moved properties to engine layer

This commit is contained in:
Deluan 2016-03-08 18:40:16 -05:00
parent 067517a916
commit 8607e25c90
8 changed files with 20 additions and 18 deletions

View file

@ -2,9 +2,9 @@ package api
import (
"fmt"
"github.com/astaxie/beego"
"github.com/deluan/gosonic/api/responses"
"github.com/deluan/gosonic/domain"
"github.com/deluan/gosonic/engine"
"github.com/deluan/gosonic/utils"
"github.com/karlkfi/inject"
@ -12,13 +12,11 @@ import (
type GetIndexesController struct {
BaseAPIController
properties domain.PropertyRepository
browser engine.Browser
browser engine.Browser
}
func (c *GetIndexesController) Prepare() {
inject.ExtractAssignable(utils.Graph, &c.browser)
inject.ExtractAssignable(utils.Graph, &c.properties)
}
// TODO: Shortcuts amd validate musicFolder parameter