removed lodash and axios

This commit is contained in:
2026-05-07 22:50:02 +03:00
parent daa4b268a6
commit a04cdd753d
24 changed files with 2191 additions and 4844 deletions
+3 -6
View File
@@ -7,11 +7,8 @@ use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use Lucent\Channel\ChannelService;
use Lucent\File\FileService;
use Lucent\File\ImageService;
use Lucent\Query\Query;
use Lucent\Record\InputData\RecordInputData;
use Lucent\Record\RecordService;
use Lucent\Record\Status;
use function Lucent\Response\fail;
use function Lucent\Response\ok;
@@ -27,20 +24,20 @@ class FileController extends Controller
public function fromDisk(Request $request, string $disk)
{
$imagePath = $request->route("any");
$disk = $this->fileService->loadDisk($disk);
$disk = $this->fileService->loadPublicDisk($disk);
return response()->file($disk->path($imagePath));
}
public function thumb(Request $request, string $disk)
{
$imagePath = "thumbs/" . $request->route("any");
$disk = $this->fileService->loadDisk($disk);
$disk = $this->fileService->loadPublicDisk($disk);
return response()->file($disk->path($imagePath));
}
public function download(Request $request)
{
$disk = $this->fileService->loadDisk();
$disk = $this->fileService->loadPublicDisk();
return $disk->download($request->input("path"));
}