mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
29 lines
1.2 KiB
PHP
29 lines
1.2 KiB
PHP
<?php
|
|
|
|
use CodeIgniter\Router\RouteCollection;
|
|
|
|
/** @var RouteCollection $routes */
|
|
|
|
/* Rutas para tarifas */
|
|
$routes->group('importador', ['namespace' => 'App\Controllers\Importadores'], function ($routes) {
|
|
/* Libros */
|
|
$routes->group('catalogo', ['namespace' => 'App\Controllers\Importadores'], function ($routes) {
|
|
/**======================
|
|
* CRUD
|
|
*========================**/
|
|
$routes->get('', 'ImportadorCatalogo::index', ['as' => 'importadorCatalogoTool']);
|
|
$routes->get('gettarifas', 'CatalogoLibros::getSelect2');
|
|
$routes->match(['get', 'post'], 'add', 'CatalogoLibros::add', ['as' => 'catalogoLibrosAdd']);
|
|
$routes->match(['get', 'post'], 'edit/(:num)', 'CatalogoLibros::edit/$1', ['as' => 'catalogoLibrosEdit']);
|
|
$routes->get('delete/(:num)', 'CatalogoLibros::delete/$1', ['as' => 'catalogoLibrosDelete']);
|
|
$routes->get('datatable', 'CatalogoLibros::datatable', ['as' => 'catalogoLibrosDT']);
|
|
|
|
|
|
/**======================
|
|
* AJAX
|
|
*========================**/
|
|
$routes->get('clientlist', 'CatalogoLibros::getClientList', ['as' => 'catalogoLibrosClientList']);
|
|
|
|
|
|
});
|
|
}); |