Added customer endpoint

This commit is contained in:
Luis Alvarez
2021-05-18 08:39:36 -05:00
parent 591cd6d4e6
commit eb2fd80ead
10 changed files with 151 additions and 9 deletions

8
pages/api/customer.ts Normal file
View File

@@ -0,0 +1,8 @@
import customer from '@commerce/api/endpoints/customer'
import { CustomerAPI, operations } from '@framework/api/customer'
import commerce from '@lib/api/commerce'
export default commerce.endpoint({
handler: customer as CustomerAPI['endpoint']['handler'],
operations,
})