Pass parameters to Swell fetch function
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user