i wonder how to get value from data from send request for example
//serverless.yml
functions:
hello:
handler: handler.hello
events:
- http:
path: "getTest/{damn}"
method: get
request:
template:
application/json: >
{
“damn”: “$input.params(‘damn’)”
}
//handler.js
module.exports.hello = (event, context, cb) => {
cb(null, { Message: ‘you got me’+ event.damn});
};
and when i test it, error like this:
“errorMessage”: “Unexpected token .”,
“errorType”: “SyntaxError”,