mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-05-06 13:40:04 -05:00
26 lines
284 B
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() {
|
|
}
|