wfc-server/api/main.go

26 lines
284 B
Go

package api
import (
"wwfc/common"
"wwfc/database"
)
var (
db database.Connection
apiSecret string
)
func StartServer(reload bool) {
// Get config
config := common.GetConfig()
apiSecret = config.APISecret
// Start SQL
db = database.Start(config)
}
func Shutdown() {
}