Upload.js 222 Bytes
Newer Older
Giang Tran committed
1 2 3 4 5 6 7
import {PostLogin, GetData, PostFormData} from '../helpers';
import url from '../url';

export const uploadImage = async (body) =>
  PostFormData(url.urlUploadImage, body)
    .then((res) => res)
    .catch((err) => err);