mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
30 lines
1.0 KiB
PHP
30 lines
1.0 KiB
PHP
<?php
|
|
|
|
use CodeIgniter\Router\RouteCollection;
|
|
|
|
/** @var RouteCollection $routes */
|
|
|
|
/* Rutas para tarifas */
|
|
$routes->group('sistema', ['namespace' => 'App\Controllers\Sistema'], function ($routes) {
|
|
/* Actividad */
|
|
$routes->group('actividad', ['namespace' => 'App\Controllers\Sistema'], function ($routes) {
|
|
/**======================
|
|
* CRUD
|
|
*========================**/
|
|
$routes->get('', 'Actividad::index', ['as' => 'activityList']);
|
|
$routes->post('datatable', 'Actividad::datatable', ['as' => 'activityDT']);
|
|
|
|
});
|
|
|
|
/* Actividad */
|
|
$routes->group('backups', ['namespace' => 'App\Controllers\Sistema'], function ($routes) {
|
|
/**======================
|
|
* Tool
|
|
*========================**/
|
|
$routes->get('', 'Backups::index', ['as' => 'backupsList']);
|
|
$routes->get('/create', 'Backups::create', ['as' => 'backupsCreate']);
|
|
$routes->get('restore/(:segment)', 'Backups::restore/$1', ['as' => 'backupsRestore']);
|
|
|
|
});
|
|
|
|
}); |