mirror of
https://github.com/smittix/intercept.git
synced 2026-05-29 20:09:26 -07:00
Blueprint registration, database init, cleanup, and websocket setup were all inside main() which only runs via 'python intercept.py'. When gunicorn imports app:app, it got a bare Flask app with no routes, causing every endpoint to return 404. Extracted initialization into _init_app() called at module level with a guard to prevent double-init when main() is also used. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
40 KiB
40 KiB