Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2021-02-05 05:21:31 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2021-02-05 05:21:31 +0300
commit12d662baa3698d0f2a7db6d33983fc7ee483a069 (patch)
tree079784336dda071ac49fe14d88baf141f96749bf /libraries/routes.php
parentaf946c5e53a99b57625893f3cbe206cf4d2e8e69 (diff)
Replace themes preview popup with a modal
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'libraries/routes.php')
-rw-r--r--libraries/routes.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/libraries/routes.php b/libraries/routes.php
index cfc582b25b..38e085d703 100644
--- a/libraries/routes.php
+++ b/libraries/routes.php
@@ -106,7 +106,6 @@ if (! defined('PHPMYADMIN')) {
return static function (RouteCollector $routes): void {
$routes->addGroup('', static function (RouteCollector $routes): void {
$routes->addRoute(['GET', 'POST'], '[/]', [HomeController::class, 'index']);
- $routes->post('/set-theme', [HomeController::class, 'setTheme']);
$routes->post('/collation-connection', [HomeController::class, 'setCollationConnection']);
$routes->addRoute(['GET', 'POST'], '/recent-table', [HomeController::class, 'reloadRecentTablesList']);
$routes->addRoute(['GET', 'POST'], '/git-revision', [HomeController::class, 'gitRevision']);
@@ -331,7 +330,10 @@ return static function (RouteCollector $routes): void {
$routes->addRoute(['GET', 'POST'], '/zoom-search', [ZoomSearchController::class, 'index']);
});
$routes->post('/tables', [TableController::class, 'all']);
- $routes->get('/themes', [ThemesController::class, 'index']);
+ $routes->addGroup('/themes', static function (RouteCollector $routes): void {
+ $routes->get('', [ThemesController::class, 'index']);
+ $routes->post('/set', [ThemesController::class, 'setTheme']);
+ });
$routes->addGroup('/transformation', static function (RouteCollector $routes): void {
$routes->addRoute(['GET', 'POST'], '/overview', [TransformationOverviewController::class, 'index']);
$routes->addRoute(['GET', 'POST'], '/wrapper', [TransformationWrapperController::class, 'index']);