mirror of
https://github.com/ZTatman/myst.git
synced 2026-11-20 20:07:59 +00:00
Mirror the session.py dependency trio: current_app_settings (honest optional accessor), get_app_settings (required; raises 500 if reached unconfigured), and set_app_settings (single write path). Middleware reads through the accessor instead of poking app.state directly. get_app_settings takes request and calls current_app_settings internally rather than declaring it as a sub-Depends — a Depends param typed with a TYPE_CHECKING-only forward ref makes FastAPI drop the marker and treat it as a query param. |
||
|---|---|---|
| .. | ||
| auth | ||
| models | ||
| routers | ||
| static | ||
| templates | ||
| __init__.py | ||
| config.py | ||
| database.py | ||
| deps.py | ||
| main.py | ||
| middleware.py | ||
| templating.py | ||