2023-05-04 11:59:47 +00:00
|
|
|
import requests as requests
|
|
|
|
from flask import Flask
|
|
|
|
from json2html import json2html
|
|
|
|
|
|
|
|
app = Flask(__name__)
|
2023-09-15 11:34:28 +00:00
|
|
|
serverUrl = "https://127.0.0.1:8000/api" #todo change me
|
2023-05-04 11:59:47 +00:00
|
|
|
|
|
|
|
@app.route('/')
|
|
|
|
def hello():
|
|
|
|
json = requests.get(serverUrl + '/GetInstallationList', verify=False) #TODO VERIFY
|
|
|
|
|
|
|
|
if json.content == b'0':
|
|
|
|
return "Still loading Installations"
|
|
|
|
return json2html.convert(json = json.json(), escape=False)
|