29 lines
1.2 KiB
PHP
29 lines
1.2 KiB
PHP
<?php
|
|
use Incoviba\API\Common\Controller\Proyectos;
|
|
use Incoviba\API\Common\Controller\Proyectos\Cuotas;
|
|
use Incoviba\API\Common\Controller\Proyectos\Cierres;
|
|
|
|
$app->group('/proyectos', function ($app) {
|
|
$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);
|
|
});
|
|
$app->group('/proyecto/{proyecto_id}', function ($app) {
|
|
$app->get('/ventas', [Proyectos::class, 'ventas']);
|
|
$app->get('/precios', [Proyectos::class, 'precios']);
|
|
$app->get('/inicio', [Proyectos::class, 'inicio']);
|
|
$app->get('/estado', [Proyectos::class, 'estado']);
|
|
$app->get('/progreso', [Proyectos::class, 'progreso']);
|
|
$app->get('/operadores', [Proyectos::class, 'operadores']);
|
|
$app->put('/edit[/]', [Proyectos::class, 'edit']);
|
|
$app->delete('/delete[/]', [Proyectos::class, 'delete']);
|
|
$app->get('[/]', [Proyectos::class, 'show']);
|
|
});
|