I have this chunk of code in my controller.js file
$http({
method: 'GET',
url: '/getGuestList',
params: {exhibitorID: 1}
})
Basically, it's supposed to get all the guests of a certain exhibitor whose exhibitor ID is 1.
On the server side, I have tried logging req.body.params and req.body.exhibitorID but both of them are undefined. I'm just getting familiar with angularjs and I don't know what I'm missing.
Your help will be very much appreciated.