1from flask import request
2from flask import jsonify
3
4@app.route("/get_my_ip", methods=["GET"])
5def get_my_ip():
6 return jsonify({'ip': request.remote_addr}), 200
1from flask import request
2from flask import jsonify
3
4@app.route("/get_my_ip", methods=["GET"])
5def get_my_ip():
6 return jsonify({'ip': request.remote_addr}), 200
7