Merge pull request #82 from KABBOUCHI/patch-1

Fix images route
This commit is contained in:
Jonathan Reinink 2020-09-12 07:26:16 -04:00 committed by GitHub
commit 8ad4b6f33f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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