Pass parameters to Swell fetch function

This commit is contained in:
2022-09-18 21:48:31 +02:00
parent f31f25aac9
commit 719c7b6f87
2 changed files with 15 additions and 3 deletions

View File

@@ -55,7 +55,9 @@ export const load: PageServerLoad = async () => {
/**
* Get products data from Swell
*/
const shopProducts: any = await fetchSwell('/products')
const shopProducts: any = await fetchSwell('/products', {
category: 'posters',
})
if (shopProducts) {
return {