mirror of
https://github.com/usememos/memos.git
synced 2025-12-19 23:29:26 +08:00
Ensure AIP-133 compliance by returning codes.AlreadyExists when a duplicate memo ID is provided, rather than a generic database error. Handles unique constraint violations across all database drivers: - SQLite: "UNIQUE constraint failed" - PostgreSQL: "duplicate key" - MySQL: "Duplicate entry" This provides a clear, standardized error response per Google's API design guidelines (AIP-133 for Create methods). |
||
|---|---|---|
| .. | ||
| api/v1 | ||
| frontend | ||
| rss | ||