Auth, Login, Home, Venta->Listados->Precios

This commit is contained in:
Juan Pablo Vial
2023-07-24 20:55:26 -04:00
parent d9d5a15376
commit 1a7b10ce3c
130 changed files with 4302 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<?php
$app->group('/api', function($app) {
$folder = implode(DIRECTORY_SEPARATOR, [__DIR__, 'api']);
if (file_exists($folder)) {
$files = new FilesystemIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
}
});

View File

@ -0,0 +1,6 @@
<?php
use Incoviba\Controller\Proyectos;
$app->group('/proyectos', function($app) {
$app->get('[/]', Proyectos::class);
});

View File

@ -0,0 +1,10 @@
<?php
$app->group('/ventas', function($app) {
$files = new FilesystemIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'ventas']));
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
});

View File

@ -0,0 +1,8 @@
<?php
use Incoviba\Controller\Login;
$app->group('/login', function($app) {
$app->post('[/]', [Login::class, 'login']);
$app->get('[/]', [Login::class, 'form']);
});
$app->get('/logout', [Login::class, 'logout']);

View File

@ -0,0 +1,4 @@
<?php
use Incoviba\Controller\Base;
$app->get('[/]', Base::class);

View File

@ -0,0 +1,6 @@
<?php
use Incoviba\Controller\Proyectos;
$app->group('/proyectos', function($app) {
$app->get('[/]', [Proyectos::class, 'list']);
});

View File

@ -0,0 +1,13 @@
<?php
$app->group('/ventas', function($app) {
$folder = implode(DIRECTORY_SEPARATOR, [__DIR__, 'ventas']);
if (file_exists($folder)) {
$files = new FilesystemIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
}
});

View File

@ -0,0 +1,6 @@
<?php
use Incoviba\Controller\Ventas\Precios;
$app->group('/precios', function($app) {
$app->post('[/]', [Precios::class, 'proyecto']);
});

View File

@ -0,0 +1,9 @@
<?php
use Incoviba\Controller\Ventas\Cuotas;
$app->group('/cuotas', function($app) {
$app->get('/pendientes[/]', [Cuotas::class, 'pendientes']);
});
$app->group('/cuota', function($app) {
$app->post('/depositar[/]', [Cuotas::class, 'depositar']);
});

View File

@ -0,0 +1,6 @@
<?php
use Incoviba\Controller\Ventas\Precios;
$app->group('/precios', function($app) {
$app->get('[/]', Precios::class);
});