Update API links
parent
cbd6438a96
commit
fd8589a7df
|
@ -147,7 +147,7 @@ export function createExploration(source, push) {
|
|||
return (dispatch) => {
|
||||
const initialState = getInitialState();
|
||||
AJAX({
|
||||
url: `${source.links.self}/users/1/explorations`, // TODO: change this to use actual user link once users are introduced
|
||||
url: `/chronograf/v1/users/1/explorations`, // TODO: change this to use actual user link once users are introduced
|
||||
method: 'POST',
|
||||
data: JSON.stringify({
|
||||
data: JSON.stringify(initialState),
|
||||
|
@ -236,7 +236,7 @@ export function fetchExplorers({source, userID, explorerURI, push}) {
|
|||
return (dispatch) => {
|
||||
dispatch({type: 'FETCH_EXPLORERS'});
|
||||
AJAX({
|
||||
url: `${source.links.self}/users/${userID}/explorations`,
|
||||
url: `/chronograf/v1/users/${userID}/explorations`,
|
||||
}).then(({data: {explorations}}) => {
|
||||
const explorers = explorations.map(parseRawExplorer);
|
||||
dispatch(loadExplorers(explorers));
|
||||
|
|
Loading…
Reference in New Issue