2024-03-02 15:17:47 -05:00
|
|
|
<?php
|
|
|
|
|
2024-11-03 02:41:26 -05:00
|
|
|
use App\BlueprintFramework\Controllers\ExtensionRouteController;
|
2024-04-08 07:55:15 -04:00
|
|
|
|
2024-03-03 08:44:00 -05:00
|
|
|
foreach (File::allFiles(__DIR__ . '/client') as $partial) {
|
2024-03-02 15:17:47 -05:00
|
|
|
if ($partial->getExtension() == 'php') {
|
2024-03-02 16:24:07 -05:00
|
|
|
Route::prefix('/'.basename($partial->getFilename(), '.php'))
|
2024-03-02 15:17:47 -05:00
|
|
|
->group(function () use ($partial) {require_once $partial->getPathname();}
|
|
|
|
);
|
|
|
|
}
|
2024-04-08 07:55:15 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Routes internally used by Blueprint. */
|
|
|
|
Route::prefix('/blueprint')->group(function () {
|
|
|
|
Route::get('/eggs', [ExtensionRouteController::class, 'eggs']);
|
|
|
|
});
|