flama
flama copied to clipboard
Shortcuts for generating routes based on http verbs
It would be desirable to allow creating routes like this:
@app.get("/foo/")
def foo():
return {"message": "foo"}
as a shortcut for:
@app.route("/foo/", methods=["GET"])
def foo():
return {"message": "foo"}