forked from crowetic/commerce
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
|