isDir()) { continue; } include_once $file->getRealPath(); } $app->get('/', API::class); $app->options('/', function ($request, $response, $args) { return $response; });