diff --git a/app/resources/routes/api/external.php b/app/resources/routes/api/external.php new file mode 100644 index 0000000..37b597e --- /dev/null +++ b/app/resources/routes/api/external.php @@ -0,0 +1,10 @@ +group('/external', function($app) { + $files = new FilesystemIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'external'])); + foreach ($files as $file) { + if ($file->isDir()) { + continue; + } + include_once $file->getRealPath(); + } +});