mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 03:52:44 +00:00
16 lines
227 B
Python
16 lines
227 B
Python
from flask import Flask
|
|
import requests
|
|
|
|
app = Flask(__name__)
|
|
|
|
URL = "http://service"
|
|
|
|
|
|
@app.route('/')
|
|
def doRequest():
|
|
return requests.get(URL).json()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app.run(debug=True, host="0.0.0.0")
|