This commit is contained in:
2020-02-27 19:17:44 +01:00
parent 953b149849
commit 896ae57a88
4 changed files with 404 additions and 38 deletions

View File

@@ -14,6 +14,9 @@ def doRequest():
def itWorks():
return requests.get(URL).json()
@app.route('/find/<name>/<port>')
def findServer(name, port):
return requests.get("http://"+name+":"+port)
if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0", port=5000)