FEATURE: Add user file move endpoint and support both personal and org workspace moves

This commit is contained in:
Leon Bösche
2026-01-12 00:01:47 +01:00
parent 6ffe9aa4df
commit 675c2bf95d
2 changed files with 92 additions and 1 deletions

View File

@@ -161,8 +161,11 @@ class FileService {
String sourcePath,
String targetPath,
) async {
final endpoint = orgId.isEmpty
? '/user/files/move'
: '/orgs/$orgId/files/move';
await _apiClient.post(
'/orgs/$orgId/files/move',
endpoint,
data: {'sourcePath': sourcePath, 'targetPath': targetPath},
fromJson: (d) => null,
);