MAPG-47 introduce PositionController which replaces GetNewPosition and also calculates results

This commit is contained in:
bence committed 2020-05-25 19:46:31 +02:00
1 parent 567238c979
commit 72a79d4267
3 files changed
+182 -36

No files matched your search

+2 -2
View File
@@ -12,8 +12,8 @@ switch($url) {
case '/game':
$controller = new MapGuesser\Controller\GameController();
break;
case '/getNewPosition.json':
$controller = new MapGuesser\Controller\GetNewPosition();
case '/position.json':
$controller = new MapGuesser\Controller\PositionController();
break;
case '/':
header('Location: ' . $host . '/game', true, 302);