Token löschen für vollständigen Logout
This commit is contained in:
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user