First Commit
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
<?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']);
|
||||
};
|
||||
Reference in New Issue
Block a user