(WIP) Refresh & Access

This commit is contained in:
2021-01-17 23:56:56 -05:00
parent cd97b6262f
commit 377903f7a1
14 changed files with 366 additions and 136 deletions

Binary file not shown.

View File

@@ -20,15 +20,15 @@ type Server struct {
}
func NewServer() *Server {
config := config.Load()
db := db.NewMgr(config)
auth := auth.NewMgr(db)
c := config.Load()
db := db.NewMgr(c)
auth := auth.NewMgr(db, c)
api := api.NewApi(db, auth)
return &Server{
API: api,
Auth: auth,
Config: config,
Config: c,
Database: db,
}
}