very good documentation

This commit is contained in:
Patrick_Pluto 2024-09-30 09:35:58 +02:00
parent b3c03149fe
commit cb6298476a
5 changed files with 40 additions and 19 deletions

View file

@ -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"})