feat: clips-api mit konflikterkennung
- GET/POST /api/clips, GET/PATCH/DELETE /api/clips/{id}
- angeheftete zuerst, dann zuletzt geändert; Seitenweise mit limit/offset
- PATCH mit version liefert 409 samt aktuellem Stand bei paralleler Änderung
- Inhalt bis CLIP_MAX_CHARS (Standard 200000), Sprache aus fester Liste
- fremde Clips sind nicht von fehlenden unterscheidbar (404), Tests dafür
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f1bfa27ba3
commit
4caab7e657
6 files changed
+478
-1
No files matched your search
@@ -26,6 +26,8 @@ class Settings(BaseSettings):
|
||||
# Only meaningful once the real client IP is known (FORWARDED_ALLOW_IPS set to the proxy)
|
||||
login_ip_lockout: bool = False
|
||||
|
||||
clip_max_chars: int = 200_000
|
||||
|
||||
initial_admin_username: str | None = None
|
||||
initial_admin_password: str | None = None
|
||||
|
||||
|
||||
Reference in new issue
Block a user