BookStack\Http\Controllers\ImageController::getAllByType PHP Method

getAllByType() public method

Get all images for a specific type, Paginated
public getAllByType ( string $type, integer $page ) : Illuminate\Http\JsonResponse
$type string
$page integer
return Illuminate\Http\JsonResponse
    public function getAllByType($type, $page = 0)
    {
        $imgData = $this->imageRepo->getPaginatedByType($type, $page);
        return response()->json($imgData);
    }