i get the error Unexpected token var when using deconstruction inside an endpoint.
The same code run endpointless work with no error.
Here a runkit to reproduce the error: https://runkit.com/alfredosalzillo/5c7facd0ce32ed0012e8fa6d#.
Running the endpoint i get this error.
I’m getting no errors. Maybe NPM/Node has been updated.
Please come back with your results,
Sorry for the delay, we’ve fixed your issue and your endpoint should work now.
There will be one issue with your code, because it’s a node
response object (not Express), you want to use
response.end(), instead of
Thanks for reporting this issue, and please let us know if you run into any more problems!