peliprint/routes/blueprint/wildcard.php
2024-03-02 22:24:07 +01:00

9 lines
No EOL
272 B
PHP

<?php
foreach (File::allFiles(__DIR__ . '/extensions') as $partial) {
if ($partial->getExtension() == 'php') {
Route::prefix('/'.basename($partial->getFilename(), '.php'))
->group(function () use ($partial) {require_once $partial->getPathname();}
);
}
}