navidrome/repositories/media_folders_repository.go
2016-02-24 19:35:58 -05:00

15 lines
No EOL
410 B
Go

package repositories
import (
"github.com/deluan/gosonic/models"
"github.com/astaxie/beego"
)
type MediaFolderRepository struct {}
func (*MediaFolderRepository) GetAll() ([]*models.MediaFolder, error) {
mediaFolder := models.MediaFolder{Id: "0", Name: "iTunes Library", Path: beego.AppConfig.String("musicFolder")}
result := make([]*models.MediaFolder, 1)
result[0] = &mediaFolder
return result, nil
}