MCPcopy Create free account
hub / github.com/pallets/flask / add

Function add

examples/javascript/js_example/views.py:15–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14@app.route("/add", methods=["POST"])
15def add():
16 a = request.form.get("a", 0, type=float)
17 b = request.form.get("b", 0, type=float)
18 return jsonify(result=a + b)

Callers

nothing calls this directly

Calls 2

jsonifyFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected