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-09-09 23:58:00 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2021-09-09 23:58:00 +0300
commit94e714a49ba306461d2935906e6fc1a7b8f4addb (patch)
tree46b8eec7e9fb543a43016829ec5c184089c3d210 /libraries/routes.php
parentdd0f63f18cd47ea359ad33b426b9d0faf5cbc2ce (diff)
Extract the `Server\ShowEngineController` class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'libraries/routes.php')
-rw-r--r--libraries/routes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/routes.php b/libraries/routes.php
index 191d19c7f8..895b3bf86e 100644
--- a/libraries/routes.php
+++ b/libraries/routes.php
@@ -148,8 +148,8 @@ return static function (RouteCollector $routes): void {
$routes->post('/destroy', Server\Databases\DestroyController::class);
});
$routes->addGroup('/engines', static function (RouteCollector $routes): void {
- $routes->get('', [Server\EnginesController::class, 'index']);
- $routes->get('/{engine}[/{page}]', [Server\EnginesController::class, 'show']);
+ $routes->get('', Server\EnginesController::class);
+ $routes->get('/{engine}[/{page}]', Server\ShowEngineController::class);
});
$routes->addRoute(['GET', 'POST'], '/export', Server\ExportController::class);
$routes->addRoute(['GET', 'POST'], '/import', Server\ImportController::class);