General.js 495 Bytes
Newer Older
Giang Tran committed
1
import {PostLogin, GetData, PostData, PostFormData} from '../helpers';
Giang Tran committed
2 3 4 5 6 7 8

import url from '../url';

export const getImagesHome = async (body) =>
  GetData(url.urlGetImagesHome, body)
    .then((res) => res)
    .catch((err) => err);
Giang Tran committed
9 10 11 12 13

export const sendFeedBack = async (body) =>
  PostFormData(url.urlFeedback, body)
    .then((res) => res)
    .catch((err) => err);
Giang Tran committed
14 15 16 17
export const sendRequest = async (body) =>
  PostData(url.urlSendRequest, body)
    .then((res) => res)
    .catch((err) => err);