Update API links

pull/10616/head
Kevin Fitzpatrick 2016-10-24 11:59:27 -07:00
parent cbd6438a96
commit fd8589a7df
1 changed files with 2 additions and 2 deletions

View File

@ -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));