|
|
@@ -53,8 +53,8 @@ func listGames(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
|
|
|
}
|
|
|
|
|
|
func createGame(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
|
|
- xString := ps.ByName("x")
|
|
|
- yString := ps.ByName("y")
|
|
|
+ xString := ps.ByName("cols")
|
|
|
+ yString := ps.ByName("rows")
|
|
|
var game *games.Game
|
|
|
|
|
|
if xString != "" && yString != "" {
|