1
0
mirror of https://github.com/vercel/commerce.git synced 2025-06-02 06:26:58 +00:00
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