feat(integrations): add synology photos support

This commit is contained in:
Marek Maslowski
2026-04-03 02:58:22 +02:00
parent cf968969d0
commit 7a169d0596
7 changed files with 694 additions and 1 deletions

View File

@@ -981,7 +981,7 @@ export function createWsToken(userId: number): { error?: string; status?: number
}
export function createResourceToken(userId: number, purpose?: string): { error?: string; status?: number; token?: string } {
if (purpose !== 'download' && purpose !== 'immich') {
if (purpose !== 'download' && purpose !== 'immich' && purpose !== 'synologyphotos') {
return { error: 'Invalid purpose', status: 400 };
}
const token = createEphemeralToken(userId, purpose);