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-12 16:01:04 +01:00
|
|
|
};
|
2021-05-08 00:21:58 +01:00
|
|
|
}
|
|
|
|
|
2021-05-12 16:01:04 +01:00
|
|
|
export const appendAPIURL = (url: string): string => pageState.apiURL + url;
|