diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-14 23:10:07 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-14 23:10:07 +0200 |
commit | e21a3fe0cd91dfeae76bce4d58c7611e78b60fbf (patch) | |
tree | 6a4f6ceda687bbd079845daf2b1c90d15225893b /app/assets | |
parent | 91144d46ecc1a6e2d39abe8bea2d62c5cb57aca3 (diff) |
Adding sync of follow relationships to Neo4J, accounts/suggestions API
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/components/actions/suggestions.jsx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/actions/suggestions.jsx b/app/assets/javascripts/components/actions/suggestions.jsx new file mode 100644 index 000000000..562a901c5 --- /dev/null +++ b/app/assets/javascripts/components/actions/suggestions.jsx @@ -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); + }); + }; +}; |