Update API links
parent
99ffa8c76e
commit
6010c1c76a
|
@ -147,7 +147,7 @@ export function createExploration(source, push) {
|
||||||
return (dispatch) => {
|
return (dispatch) => {
|
||||||
const initialState = getInitialState();
|
const initialState = getInitialState();
|
||||||
AJAX({
|
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',
|
method: 'POST',
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
data: JSON.stringify(initialState),
|
data: JSON.stringify(initialState),
|
||||||
|
@ -236,7 +236,7 @@ export function fetchExplorers({source, userID, explorerURI, push}) {
|
||||||
return (dispatch) => {
|
return (dispatch) => {
|
||||||
dispatch({type: 'FETCH_EXPLORERS'});
|
dispatch({type: 'FETCH_EXPLORERS'});
|
||||||
AJAX({
|
AJAX({
|
||||||
url: `${source.links.self}/users/${userID}/explorations`,
|
url: `/chronograf/v1/users/${userID}/explorations`,
|
||||||
}).then(({data: {explorations}}) => {
|
}).then(({data: {explorations}}) => {
|
||||||
const explorers = explorations.map(parseRawExplorer);
|
const explorers = explorations.map(parseRawExplorer);
|
||||||
dispatch(loadExplorers(explorers));
|
dispatch(loadExplorers(explorers));
|
||||||
|
|
Loading…
Reference in New Issue