Update readme and testconfig
This commit is contained in:
@ -2,7 +2,9 @@ package test
|
||||
|
||||
import (
|
||||
_ "multitenantStack/routers"
|
||||
auth "multitenantStack/services/authentication"
|
||||
"multitenantStack/services/companydb"
|
||||
"multitenantStack/services/tokenTools"
|
||||
"time"
|
||||
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/astaxie/beego/orm"
|
||||
@ -10,10 +12,11 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
orm.RegisterDataBase("default", "postgres", "host=127.0.0.1 port=5435 user=postgres password=postgre sslmode=disable")
|
||||
auth.InitAuthService()
|
||||
tokenTools.InitTokenToolsService()
|
||||
companydb.InitCompanyDBService()
|
||||
orm.DefaultTimeLoc = time.UTC
|
||||
|
||||
orm.Debug = true
|
||||
beego.BConfig.WebConfig.DirectoryIndex = true
|
||||
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
|
||||
orm.Debug = true
|
||||
}
|
||||
|
Reference in New Issue
Block a user