mirror of
https://github.com/vercel/commerce.git
synced 2025-04-25 20:37:51 +00:00
10 lines
228 B
TypeScript
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
|