mirror of
https://github.com/ZTatman/myst.git
synced 2026-11-21 04:17:59 +00:00
- 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
12 lines
198 B
Python
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"}
|