API/external
This commit is contained in:
10
app/resources/routes/api/external.php
Normal file
10
app/resources/routes/api/external.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
$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();
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user