title: Codeingiter - RESTful API Key auth for only certain Routes
body: <p>I'm in the process of building a RESTful API server. Everything is working as it should be as of now.</p>
  
  <p>I'm using Phil Sturgeon RESTful server implementation for CodeIgniter which is pretty much popular.
  <a href="https://github.com/chriskacerguis/codeigniter-restserver" rel="nofollow">https://github.com/chriskacerguis/codeigniter-restserver</a></p>
  
  <p>What i need is to have a Basic API key authentication for some of the routes which this Package already provides, but it does apply to all the API Routes.</p>
  
  <p>I do not want Authentication for all Routes..as some API should be called without Authentication
  How do we achieve it.. </p>
  
  <p><strong>Note :</strong> I cant switch the technology or framework as I'm currently using the Models which have been developed before and being used now.</p>
  
  <p>Eg Route without Auth  : <code>$route['api/products'] = "api/Products/allProducts";</code></p>
  
  <p>Eg Route with Auth : <code>$route['api/devices/update'] = "api/Devices/updateDevice";</code></p>