|
@@ -157,7 +157,7 @@ func showBoard(w http.ResponseWriter, req *http.Request, ps httprouter.Params) {
|
|
|
func showAsciiBoard(w http.ResponseWriter, req *http.Request, ps httprouter.Params) {
|
|
func showAsciiBoard(w http.ResponseWriter, req *http.Request, ps httprouter.Params) {
|
|
|
w.Header().Set("Content-Type", "text/plain;charset=utf-8")
|
|
w.Header().Set("Content-Type", "text/plain;charset=utf-8")
|
|
|
|
|
|
|
|
- id, _ := strconv.ParseInt(ps.ByName("boardid"), 10, 64)
|
|
|
|
|
|
|
+ id, _ := strconv.ParseInt(ps.ByName("gameid"), 10, 64)
|
|
|
b := gameServer.GetGame(id).Board.String()
|
|
b := gameServer.GetGame(id).Board.String()
|
|
|
w.Write([]byte(b))
|
|
w.Write([]byte(b))
|
|
|
}
|
|
}
|