I have to make a query that gets me all the information from the client with a certain ID. The problem is that I can't get the ID in the route right. I have this ajax call:
$.ajax({
type: 'GET',
url: '/client',
data: id,
success: function (result) {
console.log(result);
},
And on the route:
global.app.get('/client', function(req, res) {});
How do i get the value of the id on the route?