Created
November 28, 2018 21:06
-
-
Save mvbattan/499f1c753c209f7c5be3c847e80288ef to your computer and use it in GitHub Desktop.
Dispatcheable Service
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
import { wrapService } from 'redux-recompose'; | |
import api from '../config/api'; | |
const service = { | |
getMatches: () => api.get('/matches'), | |
getPitches: ({ id }) => api.get('/pitches', { id }), | |
}; | |
export default wrapService(service, 'soccer'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment