fixed health status

This commit is contained in:
2026-05-05 16:41:02 +02:00
parent f3c599d590
commit c0314fe7fd
+8 -1
View File
@@ -183,6 +183,13 @@ def forward_request(method, url, headers, body):
# ROUTES
# ============================================================
@app.route("/healthz")
def health():
return {
"status": "ok",
"known_users": len(KNOWN_EXTERNAL_USERS)
}
@app.route('/_matrix/client/v3/createRoom', methods=['POST'])
def create_room():
payload = request.get_json(silent=True) or {}
@@ -278,4 +285,4 @@ def invite(room_id, event_id):
# ============================================================
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
app.run(host='0.0.0.0', port=5000)