1
0
Fork 0

please help

This commit is contained in:
ChaotiCryptidz 2022-01-23 13:58:16 +00:00
parent 07aee7099c
commit 17d8e896d8

View file

@ -25,15 +25,15 @@ export function kvDeleteURL(
secret: string, secret: string,
version = "null", version = "null",
): string { ): string {
return `/secrets/kv/delete/${secret}/${version}/${baseMount}/${kvJoinSecretPath(secretPath)}`; return kvRemoveEndSlash(`/secrets/kv/delete/${secret}/${version}/${baseMount}/${kvJoinSecretPath(secretPath)}`);
} }
export function kvEditURL(baseMount: string, secretPath: string[], secret: string): string { export function kvEditURL(baseMount: string, secretPath: string[], secret: string): string {
return `/secrets/kv/edit/${secret}/${baseMount}/${kvJoinSecretPath(secretPath)}`; return kvRemoveEndSlash(`/secrets/kv/edit/${secret}/${baseMount}/${kvJoinSecretPath(secretPath)}`);
} }
export function kvVersionsURL(baseMount: string, secretPath: string[], secret: string): string { export function kvVersionsURL(baseMount: string, secretPath: string[], secret: string): string {
return `/secrets/kv/versions/${secret}/${baseMount}/${kvJoinSecretPath(secretPath)}`; return kvRemoveEndSlash(`/secrets/kv/versions/${secret}/${baseMount}/${kvJoinSecretPath(secretPath)}`);
} }
export function kvViewURL( export function kvViewURL(
@ -46,7 +46,7 @@ export function kvViewURL(
} }
export function kvListURL(baseMount: string, secretPath: string[]): string { export function kvListURL(baseMount: string, secretPath: string[]): string {
return `/secrets/kv/list/${baseMount}/${kvJoinSecretPath(secretPath)}`; return kvRemoveEndSlash(`/secrets/kv/list/${baseMount}/${kvJoinSecretPath(secretPath)}`);
} }
// Secrets / TOTP // Secrets / TOTP