@app.route('/_add_numbers')
def add_numbers():
 a = request.args.get('a', 0, type=int)
 b = request.args.get('b', 0, type=int)
 return jsonify(result=(a + b))

@ app . route ( '/_add_numbers' ) def add_numbers ( ) : a = request . args . get ( 'a' , 0 , type = int ) b = request . args . get ( 'b' , 0 , type = int ) return jsonify ( result = ( a + b ) )
add two numbers server side .