From ef057cf8c19da57be8b9a898bb47e473ff6d8732 Mon Sep 17 00:00:00 2001 From: prplwtf Date: Sat, 2 Mar 2024 22:24:07 +0100 Subject: [PATCH] feat `stuff`: push changes --- app/Providers/RouteServiceProvider.php | 1 + routes/blueprint/wildcard.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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();} ); }