19 lines
454 B
Python
19 lines
454 B
Python
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
|
|
from app.graphql.schema import graphql_app
|
|
|
|
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",
|
|
)
|