mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 20:12:43 +00:00
trigger update
This commit is contained in:
@@ -5,11 +5,22 @@ app = Flask(__name__)
|
||||
|
||||
URL = "http://server-check:6000"
|
||||
|
||||
@app.errorhandler(404)
|
||||
def page_not_found(error):
|
||||
return "beppe's 404 error"
|
||||
|
||||
@app.route('/')
|
||||
def doRequest():
|
||||
return "it works"
|
||||
|
||||
@app.route('/server-a')
|
||||
def checkThis():
|
||||
return "server-a is apparently something to worry abt"
|
||||
|
||||
@app.route("/server-a/check")
|
||||
def itAlsoWorks():
|
||||
return requests.get(URL).json()
|
||||
|
||||
@app.route('/check')
|
||||
def itWorks():
|
||||
return requests.get(URL).json()
|
||||
|
Reference in New Issue
Block a user