move get funcs to db

This commit is contained in:
sentriz
2019-07-05 17:10:11 +01:00
parent 1ab24db5d7
commit b6b3043765
13 changed files with 79 additions and 73 deletions

View File

@@ -5,8 +5,7 @@ import (
"net/http"
"time"
"github.com/jinzhu/gorm"
"github.com/sentriz/gonic/db"
"github.com/sentriz/gonic/server/handler"
)
@@ -18,7 +17,7 @@ type Server struct {
}
func New(
db *gorm.DB,
db *db.DB,
musicPath string,
listenAddr string,
assetPath string,