title: Getting async data from module and sending it through a route's endpoint
body: <p>I'm trying to build an API endpoint in Node.</p>
  
  <p>This gets data from an external API and pushes through the result through the endpoint. This endpoint will later be used on the client side.</p>
  
  <p>There's a bit of logic on the API call and I want to use it as a separate component, rather than have 60 lines of code wrapped in the <code>route.get(..)</code></p>
  
  <p>Given that this is an async problem, how can I send the <code>asyncRequestResult</code> in apiRequestModule.js to routes.js so that I can perform <code>res.send(asyncRequestResult)</code> in routes.js?</p>