I have the following setup for my API endpoints:
functions:
proxy-search:
handler: api.proxy
events:
- http:
path: _search
method: post
cors: true
search:
handler: api.search
events:
- http:
path: search
method: post
cors: true
I get no errors during the deploy but the resource “_search” is missing in API Gateway. If I rename “_search” to “foobar” both resources are created. If I manually create two resources in AWS console they can have the names “_search” and “search” so I guess it must be a limitation in serverless?