Why is this needed?
get(), post(), put(), delete(), patch(), head(), options() in BaseRouter are 7 methods with identical signatures that just call self.route(rule, "METHOD", ...). A loop or factory can generate them.
Steps:
- Create a factory function that produces the decorator method for a given HTTP method
- Register all 7 methods in BaseRouter using the factory
- Preserve type hints and docstrings for IDE support
- Verify that Router and all resolver subclasses still work
Which area does this relate to?
Event Handler - REST API
Suggestion
No response
Acknowledgment
Why is this needed?
get(),post(),put(),delete(),patch(),head(),options()in BaseRouter are 7 methods with identical signatures that just callself.route(rule, "METHOD", ...). A loop or factory can generate them.Steps:
Which area does this relate to?
Event Handler - REST API
Suggestion
No response
Acknowledgment