2024-03-02 15:17:47 -05:00
|
|
|
<?php
|
|
|
|
|
2024-03-03 08:44:00 -05:00
|
|
|
foreach (File::allFiles(__DIR__ . '/application') 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();}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|