NS
Size: a a a
NS
M
AK
NS
M
AK
M
А
MM
А
MM
MM
А
P
M
AZ
MM
где можно почитать о том как работает Node.js с такими библиотеками например как mongooseв документации mongoose?
P

function sortByPrice(param){
// console.log(window.location.search);
fetch(`/category${window.location.search}&sort=${param}`,{
method: 'GET',
headers: {
'Accept' : 'application/json',
'Content-Type' : 'application/json',
"Accept-Charset": "utf-8"
},
}).then(function(response){
console.log(response);
return response.text();
})AZ
倫岡

function sortByPrice(param){
// console.log(window.location.search);
fetch(`/category${window.location.search}&sort=${param}`,{
method: 'GET',
headers: {
'Accept' : 'application/json',
'Content-Type' : 'application/json',
"Accept-Charset": "utf-8"
},
}).then(function(response){
console.log(response);
return response.text();
})