I've written the following function
public function getImg($sku){
$product=$this->productRepository->get($sku);
$image=$product->getImage();
return $image;
}
as an api method and it returns me the name of the image. how can I get an image to be used and viewed in mobile app by rest api