Files
api/resources/routes/proyectos.php

29 lines
1.2 KiB
PHP
Raw Normal View History

2021-11-30 18:04:41 -03:00
<?php
use Incoviba\API\Common\Controller\Proyectos;
2021-12-25 23:17:15 -03:00
use Incoviba\API\Common\Controller\Proyectos\Cuotas;
use Incoviba\API\Common\Controller\Proyectos\Cierres;
2021-11-30 18:04:41 -03:00
$app->group('/proyectos', function ($app) {
2022-06-13 21:36:52 -04:00
$app->post('/add[/]', [Proyectos::class, 'add']);
$app->group('/cuotas', function($app) {
$app->get('/hoy[/]', [Cuotas::class, 'hoy']);
$app->get('/mes[/]', [Cuotas::class, 'mes']);
$app->get('/pendientes[/]', [Cuotas::class, 'pendientes']);
});
$app->group('/cierres', function($app) {
$app->get('[/]', Cierres::class);
});
$app->get('[/]', Proyectos::class);
2021-11-30 18:04:41 -03:00
});
$app->group('/proyecto/{proyecto_id}', function ($app) {
2022-06-13 21:36:52 -04:00
$app->get('/ventas', [Proyectos::class, 'ventas']);
$app->get('/precios', [Proyectos::class, 'precios']);
2023-06-26 10:49:25 -04:00
$app->get('/inicio', [Proyectos::class, 'inicio']);
$app->get('/estado', [Proyectos::class, 'estado']);
$app->get('/progreso', [Proyectos::class, 'progreso']);
$app->get('/operadores', [Proyectos::class, 'operadores']);
2022-06-13 21:36:52 -04:00
$app->put('/edit[/]', [Proyectos::class, 'edit']);
2023-06-26 10:49:25 -04:00
$app->delete('/delete[/]', [Proyectos::class, 'delete']);
2022-06-13 21:36:52 -04:00
$app->get('[/]', [Proyectos::class, 'show']);
2021-11-30 18:04:41 -03:00
});