Update app.py
Browse files
app.py
CHANGED
@@ -1867,11 +1867,8 @@ def get_db_connection():
|
|
1867 |
|
1868 |
@app.route('/delete_user', methods=['GET'])
|
1869 |
def delete_user():
|
1870 |
-
api_sys_control
|
1871 |
-
|
1872 |
-
# Проверяем значение параметра `api_sys_control`
|
1873 |
-
if api_sys_control != 'your_api_key_here': # Замените `your_api_key_here` на ваш ключ
|
1874 |
-
return jsonify({'error': 'Access denied: Invalid API key'}), 403
|
1875 |
|
1876 |
email = request.args.get('email')
|
1877 |
|
|
|
1867 |
|
1868 |
@app.route('/delete_user', methods=['GET'])
|
1869 |
def delete_user():
|
1870 |
+
if api_sys_control != api_key_sys:
|
1871 |
+
return "EUR 22", 200
|
|
|
|
|
|
|
1872 |
|
1873 |
email = request.args.get('email')
|
1874 |
|