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

9 lines
217 B
TypeScript
Raw Normal View History

2021-05-08 00:21:58 +01:00
import { pageState } from "../globalPageState";
export function getHeaders(): any {
return {
"X-Vault-Token": pageState.token,
}
}
export const appendAPIURL = (url: string): string => pageState.apiURL + url;