mirror of
https://github.com/resf/distro-tools.git
synced 2024-12-28 05:20:57 +00:00
15 lines
372 B
Python
15 lines
372 B
Python
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,
|
|
}
|
|
)
|