from fastapi import APIRouter, Request
from fastapi.responses import HTMLResponse
from fastapi.templating import Jinja2Templates

router = APIRouter()
templates = Jinja2Templates(directory="app")


@router.get("/economy/time-queue", response_class=HTMLResponse)
async def economy_time_queue_page(request: Request):
    return templates.TemplateResponse(
        "economy/frontend/time_queue.html",
        {"request": request, "title": "Economy Time Queue"},
    )
