Updated CommerceAPI class for better usage

This commit is contained in:
Luis Alvarez
2021-03-17 02:23:38 -06:00
parent 4afb5f569e
commit 21c0b7ee42
4 changed files with 54 additions and 13 deletions

View File

@@ -1,3 +1,7 @@
import cartApi from '@framework/api/cart'
import cart from '@commerce/api/endpoints/cart'
import commerce from '@lib/api/commerce'
const x = commerce.endpoint({ handler: cart, operations: {} as any })
export default cartApi()