I have set up API Gateway endpoint like this:
GET files/{filename}
Therefore, I would call it something like this: https://mydomain/api/files/somefile
I have also a lambda function with Nodejs which is empty:
exports.handler = function(event, context) {
//Retrieve here the param called 'filename' and do something with it
};
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.
Thanks!!