Version produccion
This commit is contained in:
16
resources/routes/api/uf.php
Normal file
16
resources/routes/api/uf.php
Normal 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();
|
||||
}
|
||||
}
|
||||
});
|
7
resources/routes/api/uf/value.php
Normal file
7
resources/routes/api/uf/value.php
Normal 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);
|
||||
});
|
Reference in New Issue
Block a user