API 1.0.0-rc
This commit is contained in:
12
api/resources/routes/bancos.php
Normal file
12
api/resources/routes/bancos.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\Bancos;
|
||||
|
||||
$app->group('/bancos', function($app) {
|
||||
$app->post('/add[/]', [Bancos::class, 'add']);
|
||||
$app->get('[/]', Bancos::class);
|
||||
});
|
||||
$app->group('/banco/{banco_id}', function($app) {
|
||||
$app->put('/edit', [Bancos::class, 'edit']);
|
||||
$app->delete('/delete', [Bancos::class, 'delete']);
|
||||
$app->get('[/]', [Bancos::class, 'show']);
|
||||
});
|
4
api/resources/routes/base.php
Normal file
4
api/resources/routes/base.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\Base;
|
||||
|
||||
$app->get('/', Base::class);
|
13
api/resources/routes/categorias.php
Normal file
13
api/resources/routes/categorias.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\Categorias;
|
||||
|
||||
$app->group('/categorias', function($app) {
|
||||
$app->post('/add[/]', [Categorias::class, 'add']);
|
||||
$app->get('[/]', Categorias::class);
|
||||
});
|
||||
$app->group('/categoria/{categoria_id}', function($app) {
|
||||
$app->get('/cuentas', [Categorias::class, 'cuentas']);
|
||||
$app->put('/edit', [Categorias::class, 'edit']);
|
||||
$app->delete('/delete', [Categorias::class, 'delete']);
|
||||
$app->get('[/]', [Categorias::class, 'show']);
|
||||
});
|
13
api/resources/routes/cuentas.php
Normal file
13
api/resources/routes/cuentas.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\Cuentas;
|
||||
|
||||
$app->group('/cuentas', function($app) {
|
||||
$app->post('/add[/]', [Cuentas::class, 'add']);
|
||||
$app->get('[/]', Cuentas::class);
|
||||
});
|
||||
$app->group('/cuenta/{cuenta_id}', function($app) {
|
||||
$app->get('/entradas', [Cuentas::class, 'entradas']);
|
||||
$app->put('/edit', [Cuentas::class, 'edit']);
|
||||
$app->delete('/delete', [Cuentas::class, 'delete']);
|
||||
$app->get('[/]', [Cuentas::class, 'show']);
|
||||
});
|
12
api/resources/routes/entradas.php
Normal file
12
api/resources/routes/entradas.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\Entradas;
|
||||
|
||||
$app->group('/entradas', function($app) {
|
||||
$app->post('/add[/]', [Entradas::class, 'add']);
|
||||
$app->get('[/]', Entradas::class);
|
||||
});
|
||||
$app->group('/entrada/{entrada_id}', function($app) {
|
||||
$app->put('/edit', [Entradas::class, 'edit']);
|
||||
$app->delete('/delete', [Entradas::class, 'delete']);
|
||||
$app->get('[/]', [Entradas::class, 'show']);
|
||||
});
|
13
api/resources/routes/fuentes.php
Normal file
13
api/resources/routes/fuentes.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\Fuentes;
|
||||
|
||||
$app->group('/fuentes', function($app) {
|
||||
$app->post('/add[/]', [Fuentes::class, 'add']);
|
||||
$app->get('[/]', Fuentes::class);
|
||||
});
|
||||
$app->group('/fuente/{fuente_id}', function($app) {
|
||||
$app->get('/entradas', [Fuentes::class, 'entradas']);
|
||||
$app->put('/edit', [Fuentes::class, 'edit']);
|
||||
$app->delete('/delete', [Fuentes::class, 'delete']);
|
||||
$app->get('[/]', [Fuentes::class, 'show']);
|
||||
});
|
13
api/resources/routes/tipos_fuentes.php
Normal file
13
api/resources/routes/tipos_fuentes.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\TiposFuentes;
|
||||
|
||||
$app->group('/tipos_fuentes', function($app) {
|
||||
$app->post('/add[/]', [TiposFuentes::class, 'add']);
|
||||
$app->get('[/]', TiposFuentes::class);
|
||||
});
|
||||
$app->group('/tipo_fuente/{tipo_fuente_id}', function($app) {
|
||||
$app->get('/fuentes', [TiposFuentes::class, 'fuentes']);
|
||||
$app->put('/edit', [TiposFuentes::class, 'edit']);
|
||||
$app->delete('/delete', [TiposFuentes::class, 'delete']);
|
||||
$app->get('[/]', [TiposFuentes::class, 'show']);
|
||||
});
|
6
api/resources/routes/workers.php
Normal file
6
api/resources/routes/workers.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\Workers;
|
||||
|
||||
$app->group('/workers', function($app) {
|
||||
$app->post('/register', [Workers::class, 'register']);
|
||||
});
|
Reference in New Issue
Block a user