title: Node JS web service based on api key
body: <p>I have some web services, written in node js and express. I want to use api key based service. 
  Suppose I currently have a web service "getRooms".</p>
  
  <pre><code>app.get('/getRooms/', function (req, res) {
      'use strict';
      N.API.getRooms(function (rooms) {
          res.send(rooms);
      },function (err) {
          res.send(err);
      });
  });
  </code></pre>
  
  <p>I am using it by calling <a href="https://xxxxxx/getRooms" rel="nofollow">https://xxxxxx/getRooms</a>.
  Now I want to use <a href="https://xxxxxx/APIKEY/getRooms" rel="nofollow">https://xxxxxx/APIKEY/getRooms</a>. This APIKEY is different for different clients. So how do I modify my web services to achieve this? Please help. I'm new in Node JS</p>