This commit is contained in:
1
api/endpoints/orders/index.ts
Normal file
1
api/endpoints/orders/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './postOrdersCreate'
|
||||
4
api/endpoints/orders/postOrdersCreate.ts
Normal file
4
api/endpoints/orders/postOrdersCreate.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import api from '~/api/instance'
|
||||
|
||||
export const postOrdersCreate = async (parent_id: number | undefined) =>
|
||||
await api.wc.v3OrdersCreate({ parent_id })
|
||||
Reference in New Issue
Block a user