title: restful API using node not returning anything
body: <p>In my <strong>server.js</strong> I do:- </p>
  
  <pre><code>app.post('/app/getSingleOrderDetail', function(req,res,next){
    orderController.getSingleOrderDetail(req.body.order_id);
  })
  </code></pre>
  
  <p>then in models</p>
  
  <pre><code>exports.getSingleOrderDetail = function(order_id, res, res) {
     Orders.find({'_id':order_id}).exec(function(err,result){
       console.log('result: '+result) //it's ok!!
       res.json(result);
     });
  };
  </code></pre>
  
  <p>I'm expecting the result with this <code>$http</code> call in angularjs</p>
  
  <pre><code>$http({
      url: '/app/getSingleOrderDetail',
      method: "POST",
      data: {'order_id' : id}
  }).then(function(response){
      console.log(response.data)
      vm.sales_detail = response.data;
  }).catch(function(response) {
      alert('Error!');
      console.log(response);
  });
  </code></pre>
  
  <p>Everything is passed correctly but I just couldn't get the data back to client side in angularjs.</p>