خرید بک لینک

Vote count: 0

I'm trying to send multiple parameters to the backend in an http.get call. Issue is I don't see them in express:

Angular:

$http.get("/getImage/", {params: {"filename" : $scope.recipe.image.filename, "mimetype" : $scope.recipe.image.mimetype}})
.then(function(retuData){
    console.log(retuData);
})

Express:

server.get("/getImage/", function (req, res) {
  console.log(req.params.filename);
})

req.params.filename shows up as undefined when logged. All help is appreciated. Thank you!

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 21 فروردين 1395 ساعت: 0:44

صفحه بندی