mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 15:41:27 +00:00
14 lines
363 B
TypeScript
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;
|