Version produccion

This commit is contained in:
2023-06-16 00:53:21 +00:00
parent 4806784b68
commit 15dfefe517
38 changed files with 848 additions and 0 deletions

14
resources/routes/api.php Normal file
View File

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

View File

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

View File

@ -0,0 +1,7 @@
<?php
use Aldarien\Money\Common\Controller\API\UF\Value;
$app->group('/value', function($app) {
$app->get('/{fecha}', [Value::class, 'fecha']);
$app->get('[/]', Value::class);
});

View File

@ -0,0 +1,10 @@
<?php
if (isset($__environment)) {
$filename = implode(DIRECTORY_SEPARATOR, [
__DIR__,
$__environment . '.php'
]);
if (file_exists($filename)) {
include_once $filename;
}
}

18
resources/routes/web.php Normal file
View File

@ -0,0 +1,18 @@
<?php
use Aldarien\Money\Common\Controller\Web\Base;
$folder = implode(DIRECTORY_SEPARATOR, [
__DIR__,
'web'
]);
if (file_exists($folder)) {
$files = new DirectoryIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
}
$app->get('/', Base::class);