diff --git a/routes/extensions.php b/routes/extensions.php new file mode 100644 index 00000000..c97f3eec --- /dev/null +++ b/routes/extensions.php @@ -0,0 +1,13 @@ + 'extensions'], function () { + $extensions = glob(app_path() . '/Extensions/*', GLOB_ONLYDIR); + foreach ($extensions as $extension) { + $routesFile = $extension . '/routes.php'; + if (file_exists($routesFile)) { + include_once $routesFile; + } + } +}); \ No newline at end of file