2021-03-15 17:42:56 -03:00
|
|
|
<?php
|
|
|
|
use ProVM\Money\Common\Controller\API;
|
|
|
|
|
2021-04-12 00:43:27 -04:00
|
|
|
$files = new DirectoryIterator(implode(DIRECTORY_SEPARATOR, [
|
|
|
|
__DIR__,
|
|
|
|
'api'
|
|
|
|
]));
|
|
|
|
foreach ($files as $file) {
|
|
|
|
if ($file->isDir()) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
include_once $file->getRealPath();
|
|
|
|
}
|
2021-03-15 17:42:56 -03:00
|
|
|
|
|
|
|
$app->get('/', API::class);
|
2021-03-18 23:17:19 -03:00
|
|
|
|
|
|
|
$app->options('/', function ($request, $response, $args) {
|
|
|
|
return $response;
|
|
|
|
});
|