2024-03-11 23:32:38 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
use Illuminate\Http\Request;
|
2024-05-28 21:16:50 +02:00
|
|
|
use App\Services\Assets\FileUploadService;
|
2024-03-11 23:32:38 +01:00
|
|
|
|
|
|
|
class FileUploadAPIController extends Controller
|
|
|
|
{
|
|
|
|
protected $upload;
|
|
|
|
|
|
|
|
public function __construct(FileUploadService $fileUploadService)
|
|
|
|
{
|
|
|
|
$this->upload = $fileUploadService;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function upload(Request $request, $type = null)
|
|
|
|
{
|
|
|
|
return $this->upload->handleFile($request, $type);
|
|
|
|
}
|
|
|
|
}
|