"""Workflows - Statische Anleitungsseite."""

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

from dependencies import get_current_user

router = APIRouter(prefix="/workflows")
templates = Jinja2Templates(directory="templates")


@router.get("", response_class=HTMLResponse)
async def workflows(request: Request, user=Depends(get_current_user)):
    return templates.TemplateResponse("pages/workflows.html", {
        "request": request,
        "user": user,
        "active_page": "workflows",
    })
