This is my code
app.get("/get", (request, response) => {
if (!request.query.url) {
return response.json({
status: "Error",
data: "No URL provided"
});
};
console.log(request.query.url)
axios.get(request.query.url)
.then(function (response2) {
response.json(response2.data);
})
.catch(function (error) {
console.log(error);
response.json({
status: "Error",
data: error
});
});
});
When I tried getting this URL http://localhost/get?url=https://catalog.roblox.com/v1/search/items/details?Category=3&MaxPrice=1000&Keyword=DIE
, the output only showed https://catalog.roblox.com/v1/search/items/details?Category=3
but other query are cut off
This is the output
Listening on port 80
https://catalog.roblox.com/v1/search/items/details?Category=3
Any way to solve this problem? I can't find any solution on the internet because I don't know how to explain this problem.