refactor API server

This commit is contained in:
Kohaku-Blueleaf
2025-10-06 13:00:17 +08:00
parent b8eaaa38f2
commit 4047575458
11 changed files with 1335 additions and 548 deletions

View File

@@ -24,7 +24,7 @@ async def list_commits(
branch: str = "main",
limit: int = Query(20, ge=1, le=100),
after: Optional[str] = None,
user: User = Depends(get_optional_user),
user: User | None = Depends(get_optional_user),
):
"""List commits for a repository branch.