This commit is contained in:
Mateusz779 2023-04-14 15:42:41 +02:00
parent 682dd093b7
commit 8a5e5f0ce8

8
app.py
View File

@ -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")