clear without swap endpoint

This commit is contained in:
waltem01 2023-11-23 10:49:03 +01:00
parent d715b0a01b
commit 1e618efed0

View File

@ -99,6 +99,19 @@ def set_color():
return jsonify(response)
@api.route('/clear', methods=['GET'])
def update_matrix():
response = { 'success': True }
try:
global matrix
matrix.clear()
except Exception as e:
print(e)
response['success'] = False
return jsonify(response)
@api.route('/update', methods=['GET'])
def update_matrix():
response = { 'success': True }