history backend tweaks
This commit is contained in:
parent
cfe369a032
commit
03aa86485a
3 changed files with 39 additions and 18 deletions
12
py/api.py
12
py/api.py
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue