wfc-server/race/main.go
Palapeli c002bb81a6
Some checks are pending
Build CI / build (push) Waiting to run
golangci-lint / lint (push) Waiting to run
Rework HTTP request handling entirely
2026-04-06 11:35:02 -04:00

30 lines
430 B
Go

package race
import (
"net/http"
"wwfc/common"
"wwfc/database"
)
var (
db database.Connection
)
func StartServer(reload bool) {
// Get config
config := common.GetConfig()
common.ReadGameList()
// Start SQL
db = database.Start(config)
}
func Shutdown() {
db.Close()
}
func RegisterHandlers(mux *http.ServeMux) {
mux.HandleFunc("POST /RaceService/NintendoRacingService.asmx", handleNintendoRacingServiceRequest)
}