title: Send result from HTTP request in Angular to NodeJS
body: <p>I am currently sending a request from NodeJS to get some data, as such :</p>
  
  <p>In Angular :</p>
  
  <pre><code>$http.post(API_ENDPOINT.url + '/annonce', {'link': url}).then(function (result) {
  ...
  }
  </code></pre>
  
  <p>And in Node :</p>
  
  <pre><code>apiRoutes.post('/annonce', function (req, res) {
    const url = req.body.link
  
    request.get({
      uri: url,
      encoding: null
    }, function (error, response, html) {
      if (!error) {
        res.send(parser(url, html))
      }
    })
  
    return res
  })
  </code></pre>
  
  <p>I would like to send this request from my front-end (Angular). I guess I could simply do the request like this :</p>
  
  <pre><code>$http.get(url).then(function(result)) {
      // send another post request to the back end with the result
  }
  </code></pre>
  
  <p>but I've heard it was easier to use <a href="https://nodejs.org/api/stream.html#stream_readable_pipe_destination_options" rel="nofollow noreferrer">pipes</a> in this case.
  Thing is, I really don't understand how to make it work. Can anyone help ?</p>