mirror of
https://github.com/ZTatman/myst.git
synced 2026-11-21 04:17:59 +00:00
Expose GET /links/repositories/{repo}/commits, resolving {owner}
server-side from the session's linked Forgejo identity like the sibling
branches route.
Take the ref as a query parameter instead of a path segment: branch names
contain slashes (docs/readme, feature/learn-public-links), which a single
path param cannot capture without a path converter. As a query param,
`ref` may also default to main.
Dropping the path default and declaring `repo` were both required for the
module to import: FastAPI asserts that path parameters have no defaults,
and an undeclared path param raised NameError at call time.
|
||
|---|---|---|
| .. | ||
| auth | ||
| clients | ||
| models | ||
| routers | ||
| static | ||
| templates | ||
| __init__.py | ||
| database.py | ||
| deps.py | ||
| main.py | ||
| middleware.py | ||
| settings.py | ||
| templating.py | ||