forked from projects/fipamo
ro
cd056336cd
found a minor bug that was preventing file uploads, so that was fixed. also commented out some buttons that are for features that have not been added just yet
23 lines
488 B
PHP
23 lines
488 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use App\Services\Assets\FileUploadService;
|
|
|
|
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);
|
|
}
|
|
}
|