16 lines
438 B
PHP
16 lines
438 B
PHP
<?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']);
|
|
});
|
|
});
|