distro-tools/apollo/server/routes/admin_index.py

16 lines
372 B
Python
Raw Normal View History

2023-02-01 21:37:16 +00:00
from fastapi import APIRouter, Request
from fastapi.responses import HTMLResponse
from apollo.server.utils import templates
router = APIRouter(tags=["non-api"])
@router.get("/", response_class=HTMLResponse)
async def admin_general(request: Request):
return templates.TemplateResponse(
"admin_index.jinja", {
"request": request,
}
)