mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Add Spree as allowed Framework
This commit is contained in:
17
framework/spree/api/operations/get-all-product-paths.ts
Normal file
17
framework/spree/api/operations/get-all-product-paths.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// import data from '../../data.json'
|
||||
|
||||
export type GetAllProductPathsResult = {
|
||||
products: Array<{ path: string }>
|
||||
}
|
||||
|
||||
export default function getAllProductPathsOperation() {
|
||||
function getAllProductPaths(): Promise<GetAllProductPathsResult> {
|
||||
return Promise.resolve({
|
||||
// products: data.products.map(({ path }) => ({ path })),
|
||||
// TODO: Return Storefront [{ path: '/long-sleeve-shirt' }, ...] from Spree products. Paths using product IDs are fine too.
|
||||
products: [],
|
||||
})
|
||||
}
|
||||
|
||||
return getAllProductPaths
|
||||
}
|
Reference in New Issue
Block a user