content: from fastapi import Depends
  from sqlalchemy.orm import Session
  
  from app.core.database import get_db
  from app.modules.auth.auth_service import AuthService
  from app.modules.parsing.graph_construction.parsing_controller import ParsingController
  from app.modules.parsing.graph_construction.parsing_schema import ParsingRequest
  from app.modules.utils.APIRouter import APIRouter
  
  router = APIRouter()
  
  
  @router.post("/parse")
  async def parse_directory(
      repo_details: ParsingRequest,
      db: Session = Depends(get_db),
      user=Depends(AuthService.check_auth),
  ):
      return await ParsingController.parse_directory(repo_details, db, user)
  
  
  @router.get("/parsing-status/{project_id}")
  async def get_parsing_status(
      project_id: str, db: Session = Depends(get_db), user=Depends(AuthService.check_auth)
  ):
      return await ParsingController.fetch_parsing_status(project_id, db, user)
  