Перейти к основному содержимому
Version: 3.5.x

Get REST request with BLOB response

import Joi from "joi";
import { RestRequest, IResponse } from "@mihanizm56/fetch-api";

export const getPhotoRequest = (): Promise<IResponse> =>
  new RestRequest().getBlobRequest({
    endpoint: "http://localhost:3000",
    responseSchema: Joi.any()
  });