v0.1.0
This commit is contained in:
15
backend/api/resources/routes/api.php
Normal file
15
backend/api/resources/routes/api.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?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);
|
Reference in New Issue
Block a user