user authentication structure in place
This commit is contained in:
@@ -10,17 +10,17 @@ import (
|
||||
func InitApiServer(conf *util.Config, dbConn *db.DBConn, twitchConn *ttv.TwitchConn) (*ApiServer, error) {
|
||||
engine := gin.Default()
|
||||
|
||||
apiServer := &ApiServer{ engine, conf, dbConn, twitchConn }
|
||||
apiServer := &ApiServer{engine, conf, dbConn, twitchConn}
|
||||
|
||||
apiServer.loadEndpoints()
|
||||
|
||||
|
||||
return apiServer, nil
|
||||
}
|
||||
|
||||
type ApiServer struct {
|
||||
engine *gin.Engine
|
||||
conf *util.Config
|
||||
db *db.DBConn
|
||||
conf *util.Config
|
||||
db *db.DBConn
|
||||
twitch *ttv.TwitchConn
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user