2022-12-20
This commit is contained in:
6
api/resources/routes/categorias.php
Normal file
6
api/resources/routes/categorias.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use Common\Controller\Categorias;
|
||||
|
||||
$router = $app->getContainer()->get(\Common\Service\Router::class);
|
||||
$router->setController($app->getContainer()->get(Categorias::class));
|
||||
$router->build();
|
6
api/resources/routes/conecciones.php
Normal file
6
api/resources/routes/conecciones.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use Common\Controller\Conecciones;
|
||||
|
||||
$router = $app->getContainer()->get(\Common\Service\Router::class);
|
||||
$router->setController($app->getContainer()->get(Conecciones::class));
|
||||
$router->build();
|
@ -1,12 +1,6 @@
|
||||
<?php
|
||||
use Common\Controller\Cuentas;
|
||||
|
||||
$app->group('/cuentas', function($app) {
|
||||
$app->post('/add[/]', [Cuentas::class, 'add']);
|
||||
$app->post('/edit[/]', [Cuentas::class, 'edit']);
|
||||
$app->get('[/]', Cuentas::class);
|
||||
});
|
||||
$app->group('/cuenta/{cuenta_id}', function($app) {
|
||||
$app->post('/edit[/]', [Cuentas::class, 'editOne']);
|
||||
$app->get('[/]', [Cuentas::class, 'get']);
|
||||
});
|
||||
$router = $app->getContainer()->get(\Common\Service\Router::class);
|
||||
$router->setController($app->getContainer()->get(Cuentas::class));
|
||||
$router->build();
|
||||
|
6
api/resources/routes/monedas.php
Normal file
6
api/resources/routes/monedas.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use Common\Controller\Monedas;
|
||||
|
||||
$router = $app->getContainer()->get(\Common\Service\Router::class);
|
||||
$router->setController($app->getContainer()->get(Monedas::class));
|
||||
$router->build();
|
6
api/resources/routes/transacciones.php
Normal file
6
api/resources/routes/transacciones.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use Common\Controller\Transacciones;
|
||||
|
||||
$router = $app->getContainer()->get(\Common\Service\Router::class);
|
||||
$router->setController($app->getContainer()->get(Transacciones::class));
|
||||
$router->build();
|
Reference in New Issue
Block a user