Passing more than one paramero ordered in the API

0

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)

    
asked by anonymous 10.04.2018 / 21:09

0 answers