add ability to transfer a resource to another site

This commit is contained in:
Julian
2025-01-16 21:15:41 +01:00
parent ed5e6ec0f7
commit a039168217
4 changed files with 260 additions and 0 deletions

View File

@@ -308,6 +308,13 @@ authenticated.get(
resource.getResourceWhitelist
);
authenticated.post(
`/resource/:resourceId/transfer`,
verifyResourceAccess,
verifyUserHasAction(ActionsEnum.updateResource),
resource.transferResource
);
authenticated.post(
`/resource/:resourceId/access-token`,
verifyResourceAccess,