feature/cierres (#25)
Varios cambios Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl> Reviewed-on: #25
This commit is contained in:
16
app/resources/routes/api/external.php
Normal file
16
app/resources/routes/api/external.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
use Incoviba\Controller\API\External;
|
||||
|
||||
$app->group('/external', function($app) {
|
||||
$files = new FilesystemIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'external']));
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
$app->group('/services', function($app) {
|
||||
$app->get('/check[/]', [External::class, 'check']);
|
||||
$app->get('/update[/]', [External::class, 'update']);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user