first commit

This commit is contained in:
orohi
2026-07-25 00:37:09 +03:00
commit 3ca7f9f7cc
35 changed files with 2478 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
from fastapi import APIRouter, Request
from fastapi.responses import HTMLResponse
from fastapi.templating import Jinja2Templates
from config import get_settings
router = APIRouter(tags=["pages"])
templates = Jinja2Templates(directory="templates")
@router.get("/", response_class=HTMLResponse)
async def landing(request: Request):
settings = get_settings()
return templates.TemplateResponse(
"index.html",
{
"request": request,
"brand": settings.brand_name,
},
)
@router.get("/health")
async def health():
return {"status": "ok"}