mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-25 14:41:28 +00:00
16 lines
372 B
Python
16 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,
|
|
}
|
|
)
|