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: servers:
- port: - port:
number: 6000 number: 6000
name: tcp name: http
protocol: TCP protocol: HTTP
hosts: hosts:
- "*" - "*"
--- ---

View File

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

View File

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