have an aws lambda hooked upto a api gateway like so
functions:
proxy1:
handler: handler.getData
events:
- httpApi:
path: /
method: get
I would like to duplicate this, and have a new lambda hookeup to api gatewwy lambda, based on the same code.
functions:
proxy1:
handler: handler.getData
events:
- httpApi:
path: /
method: get
proxy2:
handler: handler.getData
events:
- httpApi:
path: /
method: get
but I get this error
Duplicate route ‘GET /’ configuration in function proxy2 for httpApi event in serverless.yml
thoughts?