Last active
March 15, 2017 03:16
-
-
Save NetanelBasal/16c5168bfafc0f7cf685a0bd3bc1a3b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function getTodos() { | |
return { | |
type: API_REQUEST, | |
payload: { | |
url: "http://api.com/todos", | |
method: "GET", | |
onError: GET_TODOS_ERROR, | |
onSuccess: GET_TODOS_SUCCESS | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment