fix: moved backend get sec to v2 for dashboard

This commit is contained in:
Akhil Mohan
2023-08-25 21:37:05 +05:30
parent 9ea414fb25
commit 16f1360550

View File

@@ -38,7 +38,7 @@ const fetchProjectEncryptedSecrets = async (
folderId?: string,
secretPath?: string
) => {
const { data } = await apiRequest.get<{ secrets: EncryptedSecret[] }>("/api/v3/secrets", {
const { data } = await apiRequest.get<{ secrets: EncryptedSecret[] }>("/api/v2/secrets", {
params: {
environment: env,
workspaceId,
@@ -345,4 +345,4 @@ export const useCreateSecret = () => {
);
}
});
};
};