update get categories hook

This commit is contained in:
Greg Hoskin
2021-03-29 17:05:20 -06:00
parent ee1d8ed461
commit e4c1050880
3 changed files with 22 additions and 18 deletions

View File

@@ -0,0 +1,9 @@
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