From 8a5e5f0ce808045e2039c71ca984ef00e3985b99 Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Fri, 14 Apr 2023 15:42:41 +0200 Subject: [PATCH] add ip --- app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app.py b/app.py index f4bcbaf..154fc53 100644 --- a/app.py +++ b/app.py @@ -170,5 +170,13 @@ def release_allocation(): return jsonify(message="200") +@app.route("/api/addip", methods=['POST']) +def add_ip(): + try: + token = request.headers['token'] + ip = request.headers['ip'] + except: + pass + print(token, ip) if __name__ == '__main__': app.run(host="0.0.0.0") \ No newline at end of file