Adding sync of follow relationships to Neo4J, accounts/suggestions API
This commit is contained in:
parent
91144d46ec
commit
e21a3fe0cd
11 changed files with 76 additions and 5 deletions
15
app/assets/javascripts/components/actions/suggestions.jsx
Normal file
15
app/assets/javascripts/components/actions/suggestions.jsx
Normal file
|
@ -0,0 +1,15 @@
|
|||
import api from '../api';
|
||||
|
||||
export const SUGGESTIONS_FETCH_REQUEST = 'SUGGESTIONS_FETCH_REQUEST';
|
||||
export const SUGGESTIONS_FETCH_SUCCESS = 'SUGGESTIONS_FETCH_SUCCESS';
|
||||
export const SUGGESTIONS_FETCH_FAIL = 'SUGGESTIONS_FETCH_FAIL';
|
||||
|
||||
export function fetchSuggestions() {
|
||||
return (dispatch, getState) => {
|
||||
api(getState).get('/api/v1/accounts/suggestions').then(response => {
|
||||
console.log(response.data);
|
||||
}).catch(error => {
|
||||
console.error(error);
|
||||
});
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue