mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-03-14 10:04:40 +08:00
Remove unused endpoint game/playercount
This commit is contained in:
parent
6cb179b553
commit
0ead2da2da
@ -40,7 +40,6 @@ func Init(mux *http.ServeMux) {
|
|||||||
mux.HandleFunc("GET /account/logout", handleAccountLogout)
|
mux.HandleFunc("GET /account/logout", handleAccountLogout)
|
||||||
|
|
||||||
// game
|
// game
|
||||||
mux.HandleFunc("GET /game/playercount", handleGamePlayerCount)
|
|
||||||
mux.HandleFunc("GET /game/titlestats", handleGameTitleStats)
|
mux.HandleFunc("GET /game/titlestats", handleGameTitleStats)
|
||||||
mux.HandleFunc("GET /game/classicsessioncount", handleGameClassicSessionCount)
|
mux.HandleFunc("GET /game/classicsessioncount", handleGameClassicSessionCount)
|
||||||
|
|
||||||
|
@ -144,10 +144,6 @@ func handleAccountLogout(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
// game
|
// game
|
||||||
|
|
||||||
func handleGamePlayerCount(w http.ResponseWriter, r *http.Request) {
|
|
||||||
w.Write([]byte(strconv.Itoa(playerCount)))
|
|
||||||
}
|
|
||||||
|
|
||||||
func handleGameTitleStats(w http.ResponseWriter, r *http.Request) {
|
func handleGameTitleStats(w http.ResponseWriter, r *http.Request) {
|
||||||
err := json.NewEncoder(w).Encode(defs.TitleStats{
|
err := json.NewEncoder(w).Encode(defs.TitleStats{
|
||||||
PlayerCount: playerCount,
|
PlayerCount: playerCount,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user