firebreak/web/app/main.py
ZTatman 36c6231266 Add FastAPI setup with async SQLAlchemy and Grant model
- Add config.py with pydantic-settings for env configuration
- Add database.py with async SQLAlchemy (asyncpg driver)
- Add Grant model with id, token, timestamps, and grant_type
- Use Literal[public, private] for type-safe enum storage
- Add routes/links.py with Pydantic request/response models
- Update pyproject.toml dependencies
2026-04-23 17:20:16 -04:00

12 lines
198 B
Python

from fastapi import FastAPI
from app.routers import links
app = FastAPI(title="Myst")
app.include_router(links.router)
@app.get("/")
async def root():
return {"message": "Welcome to Myst"}