feat: Added Extension routes

This commit is contained in:
IceToast 2023-01-03 13:49:37 +01:00
parent 3c210d388d
commit 4041955296

13
routes/extensions.php Normal file
View file

@ -0,0 +1,13 @@
<?php
use Illuminate\Support\Facades\Route;
Route::group(['prefix' => 'extensions'], function () {
$extensions = glob(app_path() . '/Extensions/*', GLOB_ONLYDIR);
foreach ($extensions as $extension) {
$routesFile = $extension . '/routes.php';
if (file_exists($routesFile)) {
include_once $routesFile;
}
}
});