Added catalog endpoint and EULA.

This commit is contained in:
ZKWolf
2023-06-10 19:56:55 +02:00
parent ee26a25484
commit f625c3a75b

View File

@@ -247,7 +247,9 @@ def consent_eula():
return jsonify({"status": "success", "consent": "true"}) # Don't know. Added as Placeholder.
except TimeoutError:
print("Timeout error")
return jsonify({"status": "error"})
return jsonify({"id": "eula", "language": ["de", "en", "es", "es-MX", "fr", "it", "ja", "ko", "nl", "pl",
"pt-BR", "ru", "sv", "th", "tr", "zh-Hans", "zh-Hant"],
"platform": ["steam", "xbox", "xsx", "switch", "grdk", "stadia"]})
except Exception as e:
graylog_logger("API ERROR: " + str(e), "error")
@@ -340,6 +342,18 @@ def tex_get():
graylog_logger("API ERROR: " + str(e), "error")
@app.route("/te-18f25613-36778-ue4-374f864b/catalog", methods=["GET"])
def catalog_get():
get_remote_ip()
try:
return jsonify({"status": "success"})
except TimeoutError:
print("Timeout error")
return jsonify({"status": "error"})
except Exception as e:
graylog_logger("API ERROR: " + str(e), "error")
def run():
app.run(host='0.0.0.0', port=8080)