fix: Revert to relative ajax urls
This commit is contained in:
committed by
mrugesh mohapatra
parent
33a61fe074
commit
ca298e9bde
@@ -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,
|
||||
|
@@ -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}`);
|
||||
|
Reference in New Issue
Block a user