Migrate POST /v1/secret/:workspaceId to /v2/workspace/:workspaceId/secrets and cleared room for /v2 secret routes

This commit is contained in:
Tuan Dang
2022-12-26 22:50:59 -05:00
parent 924e3d78a3
commit f93594b62f
8 changed files with 315 additions and 117 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ const uploadSecrets = async ({
keys,
environment
}: Props) => {
return SecurityClient.fetchCall('/api/v1/secret/' + workspaceId, {
return SecurityClient.fetchCall('/api/v2/workspace/' + workspaceId + '/secrets', {
method: 'POST',
headers: {
'Content-Type': 'application/json'