fixed permissions
This commit is contained in:
parent
80c278ab12
commit
fe2cf62bd4
@ -8,13 +8,13 @@ use Storage;
|
||||
class Uploads extends Controller
|
||||
{
|
||||
/**
|
||||
* Show the specified resource.
|
||||
* Get the specified resource.
|
||||
*
|
||||
* @param $folder
|
||||
* @param $file
|
||||
* @return boolean|Response
|
||||
*/
|
||||
public function show($folder, $file)
|
||||
public function get($folder, $file)
|
||||
{
|
||||
// Get file path
|
||||
if (!$path = $this->getPath($folder, $file)) {
|
||||
|
@ -10,7 +10,7 @@ Route::group(['middleware' => ['auth', 'language', 'adminmenu', 'permission:read
|
||||
Route::get('/', 'Dashboard\Dashboard@index');
|
||||
|
||||
Route::group(['prefix' => 'uploads'], function () {
|
||||
Route::get('{folder}/{file}', 'Common\Uploads@show');
|
||||
Route::get('{folder}/{file}', 'Common\Uploads@get');
|
||||
Route::get('{folder}/{file}/download', 'Common\Uploads@download');
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user