16 lines
337 B
PHP
16 lines
337 B
PHP
|
<?php
|
||
|
use ProVM\Crypto\Common\Controller\API;
|
||
|
|
||
|
$folder = __DIR__ . DIRECTORY_SEPARATOR . 'api';
|
||
|
if (file_exists($folder)) {
|
||
|
$files = new DirectoryIterator($folder);
|
||
|
foreach ($files as $file) {
|
||
|
if ($file->getExtension() != 'php') {
|
||
|
continue;
|
||
|
}
|
||
|
include_once $file->getRealPath();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$app->get('[/]', API::class);
|