mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-09-28 11:16:22 -05:00
Added catalog endpoint and EULA.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user