This commit is contained in:
2020-03-03 09:52:59 +01:00
3 changed files with 9 additions and 4 deletions

View File

@@ -680,8 +680,8 @@ spec:
servers:
- port:
number: 6000
name: tcp
protocol: TCP
name: http
protocol: HTTP
hosts:
- "*"
---

View File

@@ -135,8 +135,8 @@ spec:
servers:
- port:
number: 6000
name: tcp
protocol: TCP
name: http
protocol: HTTP
hosts:
- "*"
---

View File

@@ -14,6 +14,11 @@ def doRequest():
def itWorks():
return requests.get(URL).json()
@app.route('/text')
def hope():
return requests.get(URL).text
@app.route('/find/<name>/<port>')
def findServer(name, port):
return requests.get("http://"+name+":"+port)