File size: 866 Bytes
970eef1
 
 
7e389db
970eef1
 
 
373381c
970eef1
 
 
 
 
 
 
 
373381c
 
970eef1
 
 
 
373381c
970eef1
 
7e389db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Routes du module
from .health import router as health_router
from .upload import router as upload_router, session_files
from .benchmark import router as benchmark_router, active_tasks
from .questions import router as questions_router
from .download import router as download_router
from .evaluation import router as evaluation_router, active_evaluation_tasks
from .cleanup import router as cleanup_router

# Exposer les routeurs
routers = [
    health_router,
    upload_router,
    benchmark_router,
    questions_router,
    download_router,
    evaluation_router,
    cleanup_router
]

# Référencer les données partagées entre routes
benchmark_router.session_files = session_files
cleanup_router.session_files = session_files

# Exposer les variables partagées pour main.py
__all__ = ['routers', 'session_files', 'active_tasks', 'active_evaluation_tasks']