17 lines
907 B
PHP
Executable File
17 lines
907 B
PHP
Executable File
<?php
|
|
|
|
use Kernel\Application;
|
|
|
|
return function (Application $app) {
|
|
$app->addRoute('GET', '/admin/systemconfig', [\Modules\SystemConfig\Controllers\SystemConfigController::class, 'index']);
|
|
$app->addRoute('POST', '/admin/systemconfig/update', [\Modules\SystemConfig\Controllers\SystemConfigController::class, 'update']);
|
|
|
|
// Theme Management
|
|
$app->addRoute('GET', '/admin/themes', [\Modules\SystemConfig\Controllers\ThemeController::class, 'index']);
|
|
$app->addRoute('POST', '/admin/themes/activate/{theme}', [\Modules\SystemConfig\Controllers\ThemeController::class, 'activate']);
|
|
|
|
// Theme Customizer
|
|
$app->addRoute('GET', '/admin/themes/{theme}/customize', [\Modules\SystemConfig\Controllers\CustomizerController::class, 'index']);
|
|
$app->addRoute('POST', '/admin/themes/{theme}/customize/save', [\Modules\SystemConfig\Controllers\CustomizerController::class, 'save']);
|
|
};
|