Files
contabilidad/api/resources/routes/cuentas.php

13 lines
387 B
PHP
Raw Normal View History

2021-07-27 22:29:56 -04:00
<?php
2022-08-08 22:36:04 -04:00
use Common\Controller\Cuentas;
2021-07-27 22:29:56 -04:00
$app->group('/cuentas', function($app) {
2022-08-08 22:36:04 -04:00
$app->post('/add[/]', [Cuentas::class, 'add']);
$app->post('/edit[/]', [Cuentas::class, 'edit']);
$app->get('[/]', Cuentas::class);
2021-07-27 22:29:56 -04:00
});
$app->group('/cuenta/{cuenta_id}', function($app) {
2022-08-08 22:36:04 -04:00
$app->post('/edit[/]', [Cuentas::class, 'editOne']);
$app->get('[/]', [Cuentas::class, 'get']);
2021-07-27 22:29:56 -04:00
});