frontend update

This commit is contained in:
carodej
2020-07-03 08:34:10 +02:00
parent 05bc598405
commit e1ebb70035
28 changed files with 1150 additions and 30 deletions

View File

@@ -36,6 +36,25 @@ class FileAccessController extends Controller
return Storage::download($path, $basename);
}
/**
* Get system image
*
* @param $basename
* @return mixed
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
public function get_system_image($basename)
{
// Get file path
$path = '/system/' . $basename;
// Check if file exist
if (!Storage::exists($path)) abort(404);
// Return avatar
return Storage::download($path, $basename);
}
/**
* Get file
*