1
0
mirror of https://github.com/vercel/commerce.git synced 2025-06-08 09:16:58 +00:00
2021-03-29 17:05:20 -06:00

10 lines
228 B
TypeScript

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