Open Chriscbr opened 1 year ago
Hi,
This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!
I wonder if api.all("/path", ...)
would be a better name for this method? 🤷♂️
Hi,
This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!
Proposed name by @eladb - api.onRequest(...)
Community Note
Feature Spec
https://docs.winglang.io/reference/wingsdk-spec#api
This method allows the user to specify an inflight that handles all requests to a particular route (irrespective of the method used).
Use Cases
Similar to
app.all()
in expressjs (https://expressjs.com/en/4x/api.html#app.all)Implementation Notes
No response
Component
SDK