Spaces:
Sleeping
Sleeping
File size: 403 Bytes
1cff1e5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | from fastapi import APIRouter, Depends
from auth.jwt import get_current_user
from services.analytics_service import get_student_history
router = APIRouter()
@router.get("/history")
async def get_reports_history(current_user: dict = Depends(get_current_user)):
"""Get student's interview history."""
history = await get_student_history(current_user["user_id"])
return {"reports": history}
|