2 ms·
This is huge. (Serious!) https://github.com/pallets/flask/pull/3907 https://github.com/pallets/flask/pull/3907 Add route decorators for common HTTP methods
by whalesalad 6y ago
This is huge. (Serious!) https://github.com/pallets/flask/pull/3907 https://github.com/pallets/flask/pull/3907
Add route decorators for common HTTP methods. For example,
@app.post("/login") is a shortcut for
@app.route("/login", methods=["POST"]).
- rastapasta42 6y ago> This is huge. I consider this to be a minor syntactic sugar.
- whalesalad 6y agoConsidering it’s a very common touch point as a flask developer it’s great to see.
- kstrauser 6y agoIt’s not rocking my world, but I know which one I’d rather grep for (especially if the methods kwarg got pushed down to another line due to formatting).
- deleted 6y ago[deleted]