Files
infisical/frontend/src/pages/api/workspace/getLatestFileKey.ts
T

14 lines
363 B
TypeScript

import { apiRequest } from "@app/config/request";
/**
* Get the latest key pairs from a certain workspace
* @param {string} workspaceId
* @returns
*/
const getLatestFileKey = async ({ workspaceId }: { workspaceId: string }) => {
const { data } = await apiRequest.get(`/api/v1/key/${workspaceId}/latest`);
return data;
}
export default getLatestFileKey;