trigger update

This commit is contained in:
2020-03-03 20:33:28 +01:00
parent 9338f28581
commit bbe673d32b
5 changed files with 28 additions and 8 deletions

View File

@@ -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()