mirror of
https://github.com/ZTatman/myst.git
synced 2026-11-21 12:27: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.
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| auth.py | ||
| links.py | ||
| settings.py | ||
| setup.py | ||