mirror of
https://github.com/vercel/commerce.git
synced 2025-07-03 19:51:22 +00:00
17 lines
395 B
TypeScript
17 lines
395 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: []
|
|
// products: data.products.map(({ path }) => ({ path })),
|
|
})
|
|
}
|
|
|
|
return getAllProductPaths
|
|
}
|