Removed unnecessary invisible unicode characters
This commit is contained in:
parent
ff07c3433e
commit
c1c052a533
@ -7,7 +7,7 @@ from user_views import admin_required, validate_access
|
||||
task_bp = Blueprint('task_bp', __name__)
|
||||
|
||||
# ============================================================
|
||||
# 🚀 1️⃣ API ENDPOINTS (ROUTES)
|
||||
# 🚀 1. API ENDPOINTS (ROUTES)
|
||||
# ============================================================
|
||||
|
||||
@task_bp.route('/tasks', methods=['GET'])
|
||||
@ -85,7 +85,7 @@ def delete_task(task_id):
|
||||
|
||||
|
||||
# ============================================================
|
||||
# 🔧 2️⃣ UTILITIES
|
||||
# 🔧 2. UTILITIES
|
||||
# ============================================================
|
||||
|
||||
def check_if_task_exists(task):
|
||||
@ -97,7 +97,7 @@ def check_if_task_exists(task):
|
||||
|
||||
|
||||
# ============================================================
|
||||
# ❌ 3️⃣ ERROR HANDLERS
|
||||
# ❌ 3. ERROR HANDLERS
|
||||
# ============================================================
|
||||
|
||||
@task_bp.errorhandler(403)
|
||||
@ -111,4 +111,4 @@ def forbidden_error(error):
|
||||
def not_found_error(error):
|
||||
response = jsonify(error.description)
|
||||
response.status_code = 404
|
||||
return response
|
||||
return response
|
||||
|
Loading…
x
Reference in New Issue
Block a user