Token löschen für vollständigen Logout

This commit is contained in:
Nirodan
2025-06-16 10:28:51 +02:00
parent 492bc31393
commit 77b95762f7
3 changed files with 15 additions and 7 deletions
+4
View File
@@ -102,6 +102,10 @@ def login():
print("[Fehler bei /api/login]:", e)
return jsonify({"message": "Serverfehler"}), 500
@app.route('/api/logout', methods=['POST'])
def logout():
# Aktuell macht das nichts, aber der Client bekommt Bestätigung
return jsonify({"message": "Logout erfolgreich"})
if __name__ == '__main__':