Files
gh-christianlouis-docuelevate/app/views/db_wizard.py
T
2026-03-06 10:47:46 +00:00

30 lines
715 B
Python

"""
Database configuration wizard view.
Serves the guided UI for configuring a database connection string
and migrating data from one database to another.
"""
import logging
from fastapi import Request
from fastapi.responses import Response
from app.config import settings
from app.views.base import APIRouter, templates
logger = logging.getLogger(__name__)
router = APIRouter()
@router.get("/database-wizard")
async def database_wizard(request: Request) -> Response:
"""Render the database configuration wizard page."""
return templates.TemplateResponse(
"db_wizard.html",
{
"request": request,
"current_database_url": settings.database_url,
},
)