mirror of
https://github.com/vercel/commerce.git
synced 2025-07-03 19:51:22 +00:00
18 lines
529 B
TypeScript
18 lines
529 B
TypeScript
// 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
|
|
}
|