mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-24 12:44:59 +02:00
add ability to transfer a resource to another site
This commit is contained in:
parent
ed5e6ec0f7
commit
a039168217
4 changed files with 260 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue