Limpieza de objetos externos
This commit is contained in:
@ -1,20 +1,12 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\Cuentas;
|
||||
use Common\Controller\Cuentas;
|
||||
|
||||
$app->group('/cuentas', function($app) {
|
||||
$app->post('/add[/]', [Cuentas::class, 'add']);
|
||||
$app->get('[/]', Cuentas::class);
|
||||
$app->post('/add[/]', [Cuentas::class, 'add']);
|
||||
$app->post('/edit[/]', [Cuentas::class, 'edit']);
|
||||
$app->get('[/]', Cuentas::class);
|
||||
});
|
||||
$app->group('/cuenta/{cuenta_id}', function($app) {
|
||||
$app->get('/entradas', [Cuentas::class, 'entradas']);
|
||||
$app->group('/transacciones', function($app) {
|
||||
$app->get('/amount', [Cuentas::class, 'transaccionesAmount']);
|
||||
$app->get('/month/{month}', [Cuentas::class, 'transaccionesMonth']);
|
||||
$app->get('/acum/{date}', [Cuentas::class, 'transaccionesAcumulation']);
|
||||
$app->get('[/{limit:[0-9]+}[/{start:[0-9]+}]]', [Cuentas::class, 'transacciones']);
|
||||
});
|
||||
$app->get('/categoria', [Cuentas::class, 'categoria']);
|
||||
$app->put('/edit', [Cuentas::class, 'edit']);
|
||||
$app->delete('/delete', [Cuentas::class, 'delete']);
|
||||
$app->get('[/]', [Cuentas::class, 'show']);
|
||||
$app->post('/edit[/]', [Cuentas::class, 'editOne']);
|
||||
$app->get('[/]', [Cuentas::class, 'get']);
|
||||
});
|
||||
|
Reference in New Issue
Block a user