api for set resource password and auth with resource password

This commit is contained in:
Milo Schwartz 2024-11-17 22:44:11 -05:00
parent c565c14aa0
commit e802d061ba
No known key found for this signature in database
10 changed files with 432 additions and 88 deletions

View file

@ -275,6 +275,18 @@ authenticated.post(
resource.setResourceUsers
);
authenticated.post(
`/resource/:resourceId/password`,
verifyResourceAccess,
verifyUserHasAction(ActionsEnum.setResourceAuthMethods),
resource.setResourcePassword
);
unauthenticated.post(
"/resource/:resourceId/auth/password",
resource.authWithPassword
);
// authenticated.get(
// "/role/:roleId/resources",
// verifyRoleAccess,