feat(api): add hash-based duplicate checking endpoint for sync clients #25
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
feature
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
zooper/caption-generator!25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/sync-duplicate-api-proper"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🎯 Overview
Add
/api/lightroom/check-duplicateendpoint to support intelligent duplicate detection for desktop sync applications like Caption Sync Qt client.📋 Changes Made
Express Server (server.js)
exists: falsefor all checks (dev mode)Cloudflare Workers (worker.js)
database.getImageByHash(user.id, hash)🔌 API Contract
Endpoint:
GET /api/lightroom/check-duplicate?hash=<sha256>Auth: API key via Bearer token
Response:
🚀 Integration Benefits
🧪 Testing
📊 Impact
Closes sync client duplicate upload functionality.
Deploying with
Cloudflare Workers
The latest updates on your project. Learn more about integrating Git with Workers.
View logs
70cfa941Branch Preview URL