-
-
Save sethbergman/a16f11cb47e3a633bee6116afbe9d3ad 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