"""
Settings Frontend Views
"""

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

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


@router.get("/settings", response_class=HTMLResponse, tags=["Frontend"])
async def settings_page(request: Request):
    """Render settings page"""
    return templates.TemplateResponse("settings/frontend/settings.html", {
        "request": request,
        "title": "Indstillinger"
    })
