nordabiz/blueprints/api/__init__.py
Maciej Pienczyn 0337d1a0bb refactor: Migrate analytics API routes to api blueprint
- Created blueprints/api/ with 6 routes:
  - /api/analytics/track
  - /api/analytics/heartbeat
  - /api/analytics/scroll
  - /api/analytics/error
  - /api/analytics/performance
  - /api/analytics/conversion
- Added CSRF exemption for analytics routes
- Removed ~230 lines from app.py (7729 -> 7506)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 17:35:08 +01:00

13 lines
245 B
Python

"""
API Blueprint
==============
Public API routes for analytics tracking and other frontend interactions.
"""
from flask import Blueprint
bp = Blueprint('api', __name__, url_prefix='/api')
from . import routes_analytics # noqa: E402, F401