very good documentation
This commit is contained in:
parent
b3c03149fe
commit
cb6298476a
5 changed files with 40 additions and 19 deletions
|
@ -94,6 +94,8 @@ class API:
|
|||
return jsonify({'status': 200, 'response': self.db.change_data(data)})
|
||||
elif action == "check_credentials":
|
||||
return jsonify({'status': 200, 'response': self.db.check_credentials(data)})
|
||||
elif action == "delete_account":
|
||||
return jsonify({'status': 200, 'response': self.db.delete_user(data)})
|
||||
|
||||
return jsonify({'status': 401, 'response': "Invalid action"})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue