use BookStack\Exceptions\ImageUploadException;
use BookStack\Uploads\ImageRepo;
+use Exception;
use Illuminate\Http\Request;
use BookStack\Http\Controllers\Controller;
{
protected $imageRepo;
- /**
- * DrawioImageController constructor.
- * @param ImageRepo $imageRepo
- */
public function __construct(ImageRepo $imageRepo)
{
$this->imageRepo = $imageRepo;
/**
* Get a list of gallery images, in a list.
* Can be paged and filtered by entity.
- * @param Request $request
- * @return \Illuminate\Http\JsonResponse
*/
public function list(Request $request)
{
/**
* Store a new gallery image in the system.
- * @param Request $request
- * @return Illuminate\Http\JsonResponse
- * @throws \Exception
+ * @throws Exception
*/
public function create(Request $request)
{
/**
* Get the content of an image based64 encoded.
- * @param $id
- * @return \Illuminate\Http\JsonResponse|mixed
*/
public function getAsBase64($id)
{