diff --git a/views/admin/map_editor.php b/views/admin/map_editor.php index cfa60a3..28b6c4d 100644 --- a/views/admin/map_editor.php +++ b/views/admin/map_editor.php @@ -15,7 +15,7 @@ $jsFiles = [

- + diff --git a/views/game.php b/views/game.php index ea72975..250ab41 100644 --- a/views/game.php +++ b/views/game.php @@ -10,7 +10,7 @@ $jsFiles = [

- + diff --git a/views/maps.php b/views/maps.php index 32504e3..842d428 100644 --- a/views/maps.php +++ b/views/maps.php @@ -5,7 +5,6 @@ $cssFiles = [ ?> -

Playable maps

diff --git a/web.php b/web.php index ac3041e..bb911e1 100644 --- a/web.php +++ b/web.php @@ -12,7 +12,7 @@ if (!empty($_ENV['DEV'])) { Container::$routeCollection = new MapGuesser\Routing\RouteCollection(); -Container::$routeCollection->get('index', '', [MapGuesser\Controller\HomeController::class, 'getIndex']); +Container::$routeCollection->get('index', '', [MapGuesser\Controller\MapsController::class, 'getMaps']); Container::$routeCollection->group('login', function (MapGuesser\Routing\RouteCollection $routeCollection) { $routeCollection->get('login', '', [MapGuesser\Controller\LoginController::class, 'getLoginForm']); $routeCollection->post('login-action', '', [MapGuesser\Controller\LoginController::class, 'login']); @@ -35,7 +35,7 @@ Container::$routeCollection->group('profile', function (MapGuesser\Routing\Route $routeCollection->get('profile', '', [MapGuesser\Controller\UserController::class, 'getProfile']); $routeCollection->post('profile-action', '', [MapGuesser\Controller\UserController::class, 'saveProfile']); }); -Container::$routeCollection->get('maps', 'maps', [MapGuesser\Controller\MapsController::class, 'getMaps']); +//Container::$routeCollection->get('maps', 'maps', [MapGuesser\Controller\MapsController::class, 'getMaps']); Container::$routeCollection->group('game', function (MapGuesser\Routing\RouteCollection $routeCollection) { $routeCollection->get('game', '{mapId}', [MapGuesser\Controller\GameController::class, 'getGame']); $routeCollection->get('game-json', '{mapId}/json', [MapGuesser\Controller\GameController::class, 'getGameJson']);