feat: 10. Мини-админка (vanilla JS + GraphQL)
This commit is contained in:
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user