Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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"
])
15
def
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
jsonify
Function · 0.90
get
Method · 0.45
Tested by
no test coverage detected