from fastapi import APIRouter, Request, Depends
from fastapi.responses import HTMLResponse
from fastapi.templating import Jinja2Templates
from pathlib import Path

router = APIRouter()

# Use "app" as base directory so we can reference templates like "conversations/frontend/templates/xxx.html"
templates = Jinja2Templates(directory="app")

@router.get("/conversations/my", response_class=HTMLResponse)
async def my_conversations_view(request: Request):
    """
    Render the Technician's Conversations Dashboard
    """
    return templates.TemplateResponse("conversations/frontend/templates/my_conversations.html", {"request": request})
