checkFiles.js 479 Bytes
import axios from 'axios';
import qs from 'qs';
export const checkFiles = (data, whatUpload) => {
  const options = {
    method: 'POST',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    data: qs.stringify(data),
    url: 'http://localhost:5000/{whatUpload}',
  };
  return axios(options);
};

//export const tikz = (id) => tikz.post(`/users?id=${id != null ? id : ''}`);
//export const testAdd = (name, tel) => client.post('/users/add', { name, tel });