Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
yarn conflict fix
  • Loading branch information
talhasch committed Oct 16, 2019
2 parents 18965b4 + 313dc37 commit 564a47c2afec350baf4f37dbb56c1f4a4cf22805
Showing 4 changed files with 496 additions and 203 deletions.
@@ -1,5 +1,10 @@
import axios from 'axios';
import { BACKEND_URL, SEARCH_API_URL, SEARCH_API_TOKEN } from '../config';
import {
BACKEND_URL,
SEARCH_API_URL,
SEARCH_API_TOKEN,
IMAGE_URL
} from '../config';

export const search = (q, sort, scrollId) =>
axios.post(
@@ -111,9 +116,9 @@ export const getMarketData = () =>

export const uploadImage = file => {
const fData = new FormData();
fData.append('postimage', file);
fData.append('file', file);

return axios.post('https://img.esteem.ws/backend.php', fData, {
return axios.post(`${IMAGE_URL}`, fData, {
headers: {
'Content-Type': 'multipart/form-data'
}
@@ -2,3 +2,4 @@ export const BACKEND_URL = 'SERVER_ADDRESS';
export const SEARCH_API_URL = 'SERVER_ADDRESS';
export const SEARCH_API_TOKEN = 'TOKEN';
export const NWS_ADDRESS = 'SERVER_ADDRESS';
export const IMAGE_URL = 'SERVER_ADDRESS';
0 resources/icons/512x512.png 100755 → 100644
Empty file.

0 comments on commit 564a47c

Please sign in to comment.