feat: 10. Мини-админка (vanilla JS + GraphQL)

This commit is contained in:
2026-10-12 17:15:57 +03:00
parent 9d9e190328
commit ba9e09f342
3 changed files with 283 additions and 0 deletions
+8
View File
@@ -1,4 +1,7 @@
from pathlib import Path
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from app.auth.router import router as auth_router
from app.config import settings
@@ -8,3 +11,8 @@ app = FastAPI(title=settings.app_name)
app.include_router(auth_router)
app.mount("/graphql", graphql_app)
app.mount(
"/admin",
StaticFiles(directory=str(Path(__file__).parent / "static"), html=True),
name="admin",
)