diff --git a/routes/web.php b/routes/web.php index 336756d..ca8fd60 100644 --- a/routes/web.php +++ b/routes/web.php @@ -10,7 +10,7 @@ use Illuminate\Support\Facades\Mail; use Illuminate\Support\Facades\Route; use Illuminate\Http\Request; use thiagoalessio\TesseractOCR\TesseractOCR; -use App\Filament\Pages\CustomLogin; + Route::get('/', function () { return redirect('/admin'); @@ -25,8 +25,8 @@ use App\Filament\Pages\CustomLogin; ]); }); - Route::get('/part-validation-image/{plant}/{filename}', function ($plant, $filename) { - $path = storage_path("app/private/uploads/PartValidation/{$plant}/{$filename}"); + Route::get('/part-validation-image/{filename}', function ($filename) { + $path = storage_path("app/private/uploads/PartValidation/{$filename}"); if (!file_exists($path)) { abort(404, 'Image not found');