16 lines
865 B
PHP
Executable File
16 lines
865 B
PHP
Executable File
<?php
|
|
|
|
use Kernel\Application;
|
|
use Modules\Configindex\Controllers\ConfigIndexController;
|
|
|
|
return function (Application $app) {
|
|
// Admin routes
|
|
$app->addRoute('GET', '/admin/configindex', [ConfigIndexController::class, 'index']);
|
|
$app->addRoute('GET', '/admin/configindex/create', [ConfigIndexController::class, 'create']);
|
|
$app->addRoute('POST', '/admin/configindex/store', [ConfigIndexController::class, 'store']);
|
|
$app->addRoute('GET', '/admin/configindex/{key}/edit', [ConfigIndexController::class, 'edit']);
|
|
$app->addRoute('POST', '/admin/configindex/{key}/update', [ConfigIndexController::class, 'update']);
|
|
$app->addRoute('POST', '/admin/configindex/{key}/toggle-status', [ConfigIndexController::class, 'toggleStatus']);
|
|
$app->addRoute('POST', '/admin/configindex/{key}/delete', [ConfigIndexController::class, 'destroy']);
|
|
};
|