mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-09-16 14:12:20 +02:00
42 lines
1.2 KiB
Python
42 lines
1.2 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
Route handlers for Ultimate Backend Service
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Add lib path for imports - this will be executed when routes module is imported
|
|
script_dir = os.path.dirname(os.path.abspath(__file__))
|
|
app_dir = os.path.dirname(script_dir) # /app
|
|
LIB_PATH = os.path.join(app_dir, "lib")
|
|
if os.path.exists(LIB_PATH) and LIB_PATH not in sys.path:
|
|
sys.path.insert(0, LIB_PATH)
|
|
|
|
from .cache import setup_cache_routes
|
|
from .config import setup_config_routes
|
|
from .drm import setup_drm_routes
|
|
from .epg import setup_epg_routes
|
|
from .m3u import setup_m3u_routes
|
|
from .events import setup_events_routes
|
|
from .vod import setup_vod_routes
|
|
from .recordings import setup_recordings_routes
|
|
from .docs import setup_docs_routes
|
|
|
|
# Now import the route setup functions
|
|
from .providers import setup_provider_routes
|
|
from .streams import setup_stream_routes
|
|
|
|
__all__ = [
|
|
"setup_provider_routes",
|
|
"setup_stream_routes",
|
|
"setup_m3u_routes",
|
|
"setup_drm_routes",
|
|
"setup_cache_routes",
|
|
"setup_config_routes",
|
|
"setup_epg_routes",
|
|
"setup_events_routes",
|
|
"setup_vod_routes",
|
|
"setup_recordings_routes",
|
|
"setup_docs_routes",
|
|
] |