Created
November 27, 2018 18:16
-
-
Save ger86/4e0b96d0170a2cc991ac28477b213b73 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 const requestIds = { | |
| GET_POSTS: 'GET_POSTS' | |
| }; | |
| export const getPosts = query => ({ | |
| requestParams: { | |
| method: 'get', | |
| url: `/posts`, | |
| params: query | |
| }, | |
| requestId: requestIds.GET_POSTS | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment