How to call own API for input of other API in nodejs
<p>i have a API called /validate which returns true or false value . I want true/false reponse to use in other API in nodejs .Please help</p>

<p><code>app.get('/validate',new TestController())
</code>
 above api will give response like <strong>true</strong> or <strong>false</strong> </p>

<p>now in below api i want to call /validate and according to reponse i want to send result to user  </p>

<p><code>app.get('/check',new Validator())</code></p>

<p>i used <code>require('request')</code> but getting error not found </p>