Commit b1e65c77 by Georges KABBOUCHI Committed by GitHub

Fix images route

1 parent e304a993
Showing with 2 additions and 1 deletions
......@@ -3,6 +3,7 @@
use App\Http\Controllers\Auth\LoginController;
use App\Http\Controllers\ContactsController;
use App\Http\Controllers\DashboardController;
use App\Http\Controllers\ImagesController;
use App\Http\Controllers\OrganizationsController;
use App\Http\Controllers\ReportsController;
use App\Http\Controllers\UsersController;
......@@ -136,7 +137,7 @@ Route::get('reports', [ReportsController::class, 'index'])
// Images
Route::get('/img/{path}', 'ImagesController@show')->where('path', '.*');
Route::get('/img/{path}', [ImagesController::class, 'show'])->where('path', '.*');
// 500 error
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!