VNEWS / _run.py
bep40's picture
Upload _run.py
786612f verified
Raw
History Blame
433 Bytes
"""VNEWS main entry - load all modules in correct order."""
from app_v2_entry import app
import logs_route
import ai_runtime_patch_fast # Original patch (for rewrite, hashtag, etc.)
# Load fix module LAST to register short endpoints cleanly
try:
import ai_runtime_fix # <-- This registers /api/ai/short endpoints
except Exception as e:
import logging
logging.getLogger("_run").warning(f"ai_runtime_fix not loaded: {e}")