1
0
Fork 0
VaultUI/src/api/apiUtils.ts

10 lines
238 B
TypeScript

import { pageState } from "../globalPageState";
export function getHeaders(): Record<string, string> {
return {
"X-Vault-Token": pageState.token,
};
}
export const appendAPIURL = (url: string): string => pageState.apiURL + url;