Remove unused endpoint game/playercount
parent
6cb179b553
commit
0ead2da2da
|
@ -40,7 +40,6 @@ func Init(mux *http.ServeMux) {
|
|||
mux.HandleFunc("GET /account/logout", handleAccountLogout)
|
||||
|
||||
// game
|
||||
mux.HandleFunc("GET /game/playercount", handleGamePlayerCount)
|
||||
mux.HandleFunc("GET /game/titlestats", handleGameTitleStats)
|
||||
mux.HandleFunc("GET /game/classicsessioncount", handleGameClassicSessionCount)
|
||||
|
||||
|
|
|
@ -144,10 +144,6 @@ func handleAccountLogout(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
// game
|
||||
|
||||
func handleGamePlayerCount(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte(strconv.Itoa(playerCount)))
|
||||
}
|
||||
|
||||
func handleGameTitleStats(w http.ResponseWriter, r *http.Request) {
|
||||
err := json.NewEncoder(w).Encode(defs.TitleStats{
|
||||
PlayerCount: playerCount,
|
||||
|
|
Loading…
Reference in New Issue