Files
crypto/backend/api/resources/routes/api.php
2021-06-28 23:15:13 -04:00

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);