history backend tweaks

This commit is contained in:
Patrick_Pluto 2024-10-02 14:14:20 +02:00
parent cfe369a032
commit 03aa86485a
3 changed files with 39 additions and 18 deletions

View file

@ -103,10 +103,14 @@ class API:
return jsonify({'status': 200, 'response': self.db.add_user(sent_data)})
elif action == "change_password":
return jsonify({'status': 200, 'response': self.db.update_password(sent_data)})
elif action == "get_data":
return jsonify({'status': 200, 'response': self.db.get_data(sent_data)})
elif action == "change_data":
return jsonify({'status': 200, 'response': self.db.change_data(sent_data)})
elif action == "get_settings":
return jsonify({'status': 200, 'response': self.db.get_settings(sent_data)})
elif action == "change_settings":
return jsonify({'status': 200, 'response': self.db.change_settings(sent_data)})
elif action == "get_history":
return jsonify({'status': 200, 'response': self.db.get_history(sent_data)})
elif action == "change_history":
return jsonify({'status': 200, 'response': self.db.change_history(sent_data)})
elif action == "check_credentials":
return jsonify({'status': 200, 'response': self.db.check_credentials(sent_data)})
elif action == "delete_account":