Fix login_required import in 11 new route files
Changed from web.routes.auth_routes to web.auth — the decorator lives in web/auth.py, not web/routes/auth_routes.py. Flask app now starts cleanly with all 45 blueprints. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
335b925198
commit
8f339e3cd2
@ -1,6 +1,6 @@
|
||||
"""Anti-Forensics routes."""
|
||||
from flask import Blueprint, request, jsonify, render_template
|
||||
from web.routes.auth_routes import login_required
|
||||
from web.auth import login_required
|
||||
|
||||
anti_forensics_bp = Blueprint('anti_forensics', __name__, url_prefix='/anti-forensics')
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
"""API Fuzzer routes."""
|
||||
from flask import Blueprint, request, jsonify, render_template
|
||||
from web.routes.auth_routes import login_required
|
||||
from web.auth import login_required
|
||||
|
||||
api_fuzzer_bp = Blueprint('api_fuzzer', __name__, url_prefix='/api-fuzzer')
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
"""BLE Scanner routes."""
|
||||
from flask import Blueprint, request, jsonify, render_template
|
||||
from web.routes.auth_routes import login_required
|
||||
from web.auth import login_required
|
||||
|
||||
ble_scanner_bp = Blueprint('ble_scanner', __name__, url_prefix='/ble')
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
"""Cloud Security Scanner routes."""
|
||||
from flask import Blueprint, request, jsonify, render_template
|
||||
from web.routes.auth_routes import login_required
|
||||
from web.auth import login_required
|
||||
|
||||
cloud_scan_bp = Blueprint('cloud_scan', __name__, url_prefix='/cloud')
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
"""Forensics Toolkit routes."""
|
||||
from flask import Blueprint, request, jsonify, render_template
|
||||
from web.routes.auth_routes import login_required
|
||||
from web.auth import login_required
|
||||
|
||||
forensics_bp = Blueprint('forensics', __name__, url_prefix='/forensics')
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
"""Log Correlator routes."""
|
||||
from flask import Blueprint, request, jsonify, render_template
|
||||
from web.routes.auth_routes import login_required
|
||||
from web.auth import login_required
|
||||
|
||||
log_correlator_bp = Blueprint('log_correlator', __name__, url_prefix='/logs')
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
"""Malware Sandbox routes."""
|
||||
import os
|
||||
from flask import Blueprint, request, jsonify, render_template, current_app
|
||||
from web.routes.auth_routes import login_required
|
||||
from web.auth import login_required
|
||||
|
||||
malware_sandbox_bp = Blueprint('malware_sandbox', __name__, url_prefix='/sandbox')
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
"""RFID/NFC Tools routes."""
|
||||
from flask import Blueprint, request, jsonify, render_template
|
||||
from web.routes.auth_routes import login_required
|
||||
from web.auth import login_required
|
||||
|
||||
rfid_tools_bp = Blueprint('rfid_tools', __name__, url_prefix='/rfid')
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
import os
|
||||
import base64
|
||||
from flask import Blueprint, request, jsonify, render_template, current_app
|
||||
from web.routes.auth_routes import login_required
|
||||
from web.auth import login_required
|
||||
|
||||
steganography_bp = Blueprint('steganography', __name__, url_prefix='/stego')
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
"""Threat Intelligence routes."""
|
||||
from flask import Blueprint, request, jsonify, render_template, Response
|
||||
from web.routes.auth_routes import login_required
|
||||
from web.auth import login_required
|
||||
|
||||
threat_intel_bp = Blueprint('threat_intel', __name__, url_prefix='/threat-intel')
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
"""WiFi Auditing routes."""
|
||||
from flask import Blueprint, request, jsonify, render_template
|
||||
from web.routes.auth_routes import login_required
|
||||
from web.auth import login_required
|
||||
|
||||
wifi_audit_bp = Blueprint('wifi_audit', __name__, url_prefix='/wifi')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user