feat: ✨ Added Extension routes
This commit is contained in:
parent
3c210d388d
commit
4041955296
1 changed files with 13 additions and 0 deletions
13
routes/extensions.php
Normal file
13
routes/extensions.php
Normal 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;
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Reference in a new issue