fix: Revert to relative ajax urls

This commit is contained in:
Bouncey
2019-02-15 20:52:11 +00:00
committed by mrugesh mohapatra
parent 33a61fe074
commit ca298e9bde
3 changed files with 4 additions and 9 deletions

View File

@@ -121,7 +121,7 @@ class DonateForm extends Component {
}));
const chargeStripePath = isSignedIn ?
`${apiLocation}/internal/donate/charge-stripe` :
`/internal/donate/charge-stripe` :
`${apiLocation}/unauthenticated/donate/charge-stripe`;
return postJSON$(chargeStripePath, {
token,

View File

@@ -1,8 +1,6 @@
import axios from 'axios';
import { apiLocation } from '../../config/env.json';
const base = `${apiLocation}/internal`;
const base = `/internal`;
function get(path) {
return axios.get(`${base}${path}`);