2018-11-06 12:14:09 +00:00
|
|
|
package test
|
|
|
|
|
|
|
|
import (
|
|
|
|
_ "multitenantStack/routers"
|
2018-11-07 19:13:26 +00:00
|
|
|
auth "multitenantStack/services/authentication"
|
2018-11-06 12:14:09 +00:00
|
|
|
|
|
|
|
"github.com/astaxie/beego"
|
|
|
|
"github.com/astaxie/beego/orm"
|
|
|
|
_ "github.com/lib/pq"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
orm.RegisterDataBase("default", "postgres", "host=127.0.0.1 port=5435 user=postgres password=postgre sslmode=disable")
|
2018-11-07 19:13:26 +00:00
|
|
|
auth.InitAuthService()
|
2018-11-06 12:14:09 +00:00
|
|
|
|
|
|
|
orm.Debug = true
|
|
|
|
beego.BConfig.WebConfig.DirectoryIndex = true
|
|
|
|
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
|
|
|
|
}
|