Compare commits

...
2 changed files with 3 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@
Core.resetGame();
};
xhr.open('GET', '/game/' + mapId + '/position.json', true);
xhr.open('GET', '/game/' + mapId + '/json', true);
xhr.send();
},
+2 -2
View File
@@ -17,7 +17,7 @@ class PositionController
$mapId = (int) $parameters['mapId'];
if (!isset($_SESSION['state']) || $_SESSION['state']['mapId'] !== $mapId) {
$data = ['error' => 'No valid session found!'];
$data = ['error' => 'no_session_found'];
return new JsonContent($data);
}
@@ -55,7 +55,7 @@ class PositionController
$mapId = (int) $parameters['mapId'];
if (!isset($_SESSION['state']) || $_SESSION['state']['mapId'] !== $mapId) {
$data = ['error' => 'No valid session found!'];
$data = ['error' => 'no_session_found'];
return new JsonContent($data);
}