It will be better if you encode it before you call the request (see above).
And maybe the best way would be to use POST (then you won’t have to encode or decode anything.
async function post_allProductsInCategory(req) {
const body = await req.body.json();
const name = body.name;
switch(name){
case "כלים":
//do something with the data
break;
case "רהיטים":
//do something with the data
break;
//etc...
}
}
I know the right Url’s (I have both payed and free Wix accounts for my apps), I just wrote the url for the example, from memory… I know it is not correct.
I know the use that you suggested, but since I used the request . path [] to send data (instead of making Json object) and it worked well, I wanted to keep using it. It turns out that for some reason it is no longer possible (if I want to send Hebrew data).