mirror of
https://github.com/vercel/commerce.git
synced 2025-07-28 20:51:23 +00:00
WIP OrderCloud provider
This commit is contained in:
16
framework/ordercloud/api/operations/get-all-product-paths.ts
Normal file
16
framework/ordercloud/api/operations/get-all-product-paths.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import data from '../../data.json'
|
||||
|
||||
export type GetAllProductPathsResult = {
|
||||
products: Array<{ path: string }>
|
||||
}
|
||||
|
||||
export default function getAllProductPathsOperation() {
|
||||
function getAllProductPaths(): Promise<GetAllProductPathsResult> {
|
||||
return Promise.resolve({
|
||||
products: []
|
||||
// products: data.products.map(({ path }) => ({ path })),
|
||||
})
|
||||
}
|
||||
|
||||
return getAllProductPaths
|
||||
}
|
Reference in New Issue
Block a user