4
0
forked from crowetic/commerce
2021-05-13 16:10:09 +03:00

8 lines
219 B
TypeScript

import { swellConfig } from '../..'
const fetchApi = async (query: string, method: string, variables: [] = []) => {
const { swell } = swellConfig
return swell[query][method](...variables)
}
export default fetchApi