wip stograge

This commit is contained in:
2024-09-20 13:39:45 +03:00
parent 32c8378020
commit 6d15591601
7 changed files with 26 additions and 9 deletions
+14
View File
@@ -41,6 +41,20 @@ class FileController extends Controller
return response()->file($disk->path("templates/".$templatePath));
}
public function original(Request $request, string $disk)
{
$imagePath = $request->route("any");
$disk = $this->fileService->loadDisk($disk);
return response()->file($disk->path($imagePath));
}
public function thumb(Request $request, string $disk)
{
$imagePath = "thumbs/".$request->route("any");
$disk = $this->fileService->loadDisk($disk);
return response()->file($disk->path($imagePath));
}
public function download(Request $request)
{
$disk = $this->fileService->loadDisk();