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

10 lines
238 B
TypeScript
Raw Normal View History

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