mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 19:16:22 +00:00
Begin rewiring frontend to use batch route for CRUD secret ops
This commit is contained in:
@@ -15,6 +15,24 @@ import {
|
||||
SECRET_SHARED
|
||||
} from '../../variables';
|
||||
|
||||
// TODO: create batch update endpoint
|
||||
|
||||
router.post(
|
||||
'/batch',
|
||||
body('workspaceId').exists().isString().trim(),
|
||||
body('environment').exists().isString().trim(),
|
||||
body('requests').exists(), // perform validation for batch requests
|
||||
validateRequest,
|
||||
requireAuth({
|
||||
acceptedAuthModes: ['jwt', 'apiKey']
|
||||
}),
|
||||
requireWorkspaceAuth({
|
||||
acceptedRoles: [ADMIN, MEMBER],
|
||||
location: 'body'
|
||||
}),
|
||||
secretsController.batchSecrets
|
||||
)
|
||||
|
||||
router.post(
|
||||
'/',
|
||||
body('workspaceId').exists().isString().trim(),
|
||||
|
||||
Reference in New Issue
Block a user