Files
Crumb-Core-v.1/app/routers/chat_page.py

29 lines
639 B
Python

"""
Chat Page Router
Serves the chat UI for character interactions.
"""
from fastapi import APIRouter, Request
from fastapi.responses import HTMLResponse
router = APIRouter()
@router.get("/{lang}/chat", response_class=HTMLResponse)
async def chat_page(lang: str, req: Request):
"""
Render the chat interface page.
Args:
lang: Language code (de/en)
req: FastAPI request object
Returns:
HTML response with chat interface
"""
return req.app.state.render(
req,
"pages/chat.html",
seo={"title": "Crumbforest Chat", "desc": "Chat with Krümeleule and FunkFox"}
)