title: Nodejs api 404 not found error while accessing url paremter
body: <p>i am making a nodejs api in which i am fetching applicant all record from db. my api url is like this</p>
  
  <pre><code>var express = require('express');
  var morgan = require('morgan');
  var bodyParser = require('body-parser');
  enter code here
  var ApplicantCtrl = require('./controllers/applicantController');
  var app = express();
  var port = process.env.Port || 8000;
  app.use(bodyParser.urlencoded({
   extended: true
  }));
   app.use(bodyParser.json());
   app.get('api/applicant/:applicantId/getFullDetails',           
    ApplicantCtrl.getApplicantAllData);
  app.listen(port, function() {
  console.log('Server is running on port : ' + port);
   });
  </code></pre>
  
  <p>and applicantController.js code is here </p>
  
  <pre><code>var connection = require('./../config');
  var helpers = require('../helpers/helper');
  
  
  module.exports.getApplicantAllData = function(req , res) {
  var id = req.params.applicantId;
  console.log('in applicantallData');
  helpers.getApplicantFullData(id)
      .then((data)=&gt;{
          if(data == null){
              res.send({
                  meta : {status : 400, message : 'There is some error with query'}
              });
          }
          else{
              res.send({
                  meta : {status : 200, message : 'Success'},
                  data : data
              });
          }
      })
      .catch(function(err){
          res.send({
              meta : {status : 500, message : 'Internal Server Error'}
          });
      });
  
    }
  </code></pre>
  
  <p>But the api response is like this</p>
  
  <pre><code>Cannot GET /api/applicant/23/getFullDetails 404
  </code></pre>
  
  <p>Can any one tell me what's wrong here? why api response is 404 found.?</p>