Hello, I’m using the following guide to setup an express serverless app:
Unfortunately, it seems somewhat out of date (it’s not dated). Something is occurring where the middleware for app.get(’/’) works fine, but anything passed that returns this message:
{
"message": "Missing authentication token."
}
I’m not sure what is going on. My index.js looks identical to that in the guide. I tried logging at the top of the body of each subsequent middleware function to see if they are even getting called, and it doesn’t appear that they are. I think this has something to do with the definitions for the routes in serverless.yml.
It does not seem to like this:
functions:
app:
handler: index.handler
events:
- http: ANY /
- http: 'ANY {proxy+}'
Any pointers in the right direction would be so appreciated. Thanks.