Skip to content

Instantly share code, notes, and snippets.

@mvbattan
Created November 28, 2018 21:02
Show Gist options
  • Save mvbattan/6d19266078b886216a4d92ed626fa662 to your computer and use it in GitHub Desktop.
Save mvbattan/6d19266078b886216a4d92ed626fa662 to your computer and use it in GitHub Desktop.
Service
import api from '../config/api';
export default {
getMatches: () => api.get('/matches'),
getPitches: ({ id }) => api.get('/pitches', { id }),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment