Hi All,
When we are creating serverless.yml file can we point different handler function for different http.methods and http.path. Default structure which I can achieve is pointing to same function for all methods and path
functions:
hello:
handler: handler.hello
events:
- http:
path: first-endpoint
method: get
- http:
path: first-endpoint
method: post
Here i want to point to different function for get & post methods maybe function1 & function2