diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2019-08-20 00:05:11 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2019-08-20 00:05:11 +0300 |
commit | 8d6a1de9541191824a69023408319ad3eb7737d2 (patch) | |
tree | 88c4a212807d85a36a30eba708f3bd74564166b6 /index.php | |
parent | 4e773c7fd27736bc7852880f5e7c901ac29b6fd9 (diff) |
Use the router for the server import page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -108,6 +108,9 @@ if (isset($_GET['route']) || isset($_POST['route'])) { $routes->addRoute(['GET', 'POST'], '/export', function () { require_once ROOT_PATH . 'libraries/entry_points/server/export.php'; }); + $routes->addRoute(['GET', 'POST'], '/import', function () { + require_once ROOT_PATH . 'libraries/entry_points/server/import.php'; + }); $routes->addRoute('GET', '/plugins', function () { require_once ROOT_PATH . 'libraries/entry_points/server/plugins.php'; }); |