title: GET request is not working to retrieve data from the db
body: <p>I am quite new to node.js and I am writing a GET request to retrieve documents from my database. Here is the definition of my request (in <code>users.js</code>) -</p>
  
  <pre><code>router.get('/', function (req, res, next) {
      Booking.find({} ,(err,prevBookings)=&gt;{
        if(err) {
            res.status(400).send('No previous bookings found.');
        }
        if(prevBookings[0]) {
            res.status(200).send(prevBookings);
        }
        else{
            console.log("no records")
            res.status(200).send("No previous bookings found.")
        }
      });
  
  });
  </code></pre>
  
  <p>And I have defined these in the <code>index.js</code> file as follows:</p>
  
  <pre><code>router.use('/users', require('./users'))
  router.use('/prev', require('./users'))
  //and there are other routers here too but totally unrelated to users.js
  </code></pre>
  
  <p>But, I am getting the following error on Postman:</p>
  
  <p><code>NotFoundError: Not Found</code></p>
  
  <p>I know that this error indicates that I am not routing it correctly. But I am not able to identify where I am going wrong. Other routes that I have defined, are working. Could anyone please help me out with this? Thank you :)</p>