mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 20:12:43 +00:00
tis af fam, dees was wel de minst plezante om te doen
This commit is contained in:
@@ -6,11 +6,19 @@ app = Flask(__name__)
|
||||
@app.route('/')
|
||||
def doRequest():
|
||||
data = {
|
||||
"serverName": "serverC",
|
||||
"serverName": "server-c",
|
||||
"version": "master",
|
||||
"success": "true"
|
||||
}
|
||||
return jsonify(data)
|
||||
|
||||
|
||||
|
||||
@app.route('/', defaults={'path': ''})
|
||||
@app.route('/<path:path>')
|
||||
def doRequest(path):
|
||||
return path + "\nserver-c"
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True, host="0.0.0.0", port=6000)
|
||||
app.run(debug=True, host="0.0.0.0", port=80)
|
||||
|
Reference in New Issue
Block a user