From dfc74375d796081c3a4d900a0ebdb5d9e63ffcb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Tue, 23 Jun 2020 20:41:28 +0200 Subject: [PATCH 1/2] MAPG-168 make maps as home temporarily to prevent redirections --- views/admin/map_editor.php | 2 +- views/game.php | 2 +- web.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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/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']); From eda4e00378de0eaaa0743d3d5f885b994a267013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Tue, 23 Jun 2020 20:44:26 +0200 Subject: [PATCH 2/2] MAPG-168 remove headers until a new home page is created --- views/maps.php | 1 - 1 file changed, 1 deletion(-) 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