mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 20:12:43 +00:00
Merge branch 'master' of https://github.com/beppevanrolleghem/cicdTest
This commit is contained in:
@@ -680,8 +680,8 @@ spec:
|
|||||||
servers:
|
servers:
|
||||||
- port:
|
- port:
|
||||||
number: 6000
|
number: 6000
|
||||||
name: tcp
|
name: http
|
||||||
protocol: TCP
|
protocol: HTTP
|
||||||
hosts:
|
hosts:
|
||||||
- "*"
|
- "*"
|
||||||
---
|
---
|
||||||
|
@@ -135,8 +135,8 @@ spec:
|
|||||||
servers:
|
servers:
|
||||||
- port:
|
- port:
|
||||||
number: 6000
|
number: 6000
|
||||||
name: tcp
|
name: http
|
||||||
protocol: TCP
|
protocol: HTTP
|
||||||
hosts:
|
hosts:
|
||||||
- "*"
|
- "*"
|
||||||
---
|
---
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user