Add syntatic sugar for route registration
Before adoption: this commit came in with the history the project adopted, so no landing records it.
This takes a popular API whereby instead of passing the HTTP method as an argument to route it is instead used as the method name i.e. @app.route("/", methods=["POST"]) is now writeable as, @app.post("/") This is simply syntatic sugar, it doesn't do anything else, but makes it slightly easier for users. I've included all the methods that are relevant and aren't auto generated i.e. not connect, head, options, and trace.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+61 added−0 removed
- tests:+17 added−0 removed
- other:+44 added−0 removed