Hacker News new | ask | show | jobs
by whalesalad 1871 days ago
This is huge. (Serious!) 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"]).
1 comments

> This is huge.

I consider this to be a minor syntactic sugar.

Considering it’s a very common touch point as a flask developer it’s great to see.
It’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).