2022-12-20
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user