Spaces:
Running
Running
| """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}") |