don't need sort stuff. update comment

This commit is contained in:
Oliver Heywood
2021-10-11 10:31:02 -05:00
parent c40f8428fa
commit 500545bbcd

View File

@@ -1,16 +1,8 @@
import { Product } from '@commerce/types/product'
import { RawProduct } from '@framework/types/product'
import { normalize as normalizeProduct } from '@framework/utils/product'
import { ProductsEndpoint } from '.'
const SORT: { [key: string]: string | undefined } = {
latest: 'id',
trending: 'total_sold',
price: 'price',
}
// Return current cart info
// Get products for the product list page. Search and category filter implemented. Sort and brand filter not implemented.
const getProducts: ProductsEndpoint['handlers']['getProducts'] = async ({
req,
res,