<?php
|
|
|
|
namespace App\Http\Controllers\Api;
|
|
|
|
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
|
use Illuminate\Foundation\Validation\ValidatesRequests;
|
|
use Illuminate\Routing\Controller as BaseController;
|
|
|
|
class FileController extends BaseController
|
|
{
|
|
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
|
|
|
|
/**
|
|
*
|
|
* @return object
|
|
*
|
|
*/
|
|
public function index($id)
|
|
{
|
|
// create bucket
|
|
$bucket = Bucket::find($id);
|
|
|
|
return response()->json([
|
|
'files' => $files
|
|
]);
|
|
}
|
|
}
|