title: Get url parameter in Lambda (Nodejs) passed by API Gateway
body: <p>I have set up API Gateway endpoint like this:</p>
  
  <p>GET files/{filename}</p>
  
  <p>Therefore, I would call it something like this: <a href="https://mydomain/api/files/somefile" rel="nofollow">https://mydomain/api/files/somefile</a></p>
  
  <p>I have also a lambda function with Nodejs which is empty:</p>
  
  <p>exports.handler = function(event, context) {</p>
  
  <p>//Retrieve here the param called 'filename' and do something with it</p>
  
  <p>};</p>
  
  <p>How can I get the param passed on the GET request?. I have checked out the event and context objects but I could not find anything helpful.</p>
  
  <p>Thanks!!</p>