diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index da8e695..6aee64a 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -66,6 +66,7 @@ class RouteServiceProvider extends ServiceProvider /* Import Blueprint wildcard router */ Route::middleware('blueprint') + ->prefix('/extensions') ->group(base_path('routes/blueprint/wildcard.php')); }); } diff --git a/routes/blueprint/wildcard.php b/routes/blueprint/wildcard.php index 48cefab..97453ee 100644 --- a/routes/blueprint/wildcard.php +++ b/routes/blueprint/wildcard.php @@ -2,7 +2,7 @@ foreach (File::allFiles(__DIR__ . '/extensions') as $partial) { if ($partial->getExtension() == 'php') { - Route::prefix('/extensions'.'/'.basename($partial->getFilename(), '.php')) + Route::prefix('/'.basename($partial->getFilename(), '.php')) ->group(function () use ($partial) {require_once $partial->getPathname();} ); }