Well, I have the following code in React
getAllSearch = (token, parameter) =>
fetch('${api}/api?orderBy=DISCOUNT${parameter}',
fetch('${api}/api?orderBy=BIGGER_PRICE${parameter}',
fetch('${api}/api?orderBy=LOWER_PRICE${parameter}',
fetch('${api}/api?orderBy=EVALUATION${parameter}',
fetch('${api}/api?orderBy=LOCATION${parameter}', {
headers: headers(token)
})
Can I just spend 1 with all of them or is there a more specific way? (when I pass it still gives me a syntax error)