From a0c71c914b1ce5e53d2a89a9025917ff66144d28 Mon Sep 17 00:00:00 2001 From: LucasBassoOcto <120090362+LucasBassoOcto@users.noreply.github.com> Date: Thu, 30 May 2024 13:43:02 +0200 Subject: [PATCH] Update route.ts --- src/app/api/vault/route.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/api/vault/route.ts b/src/app/api/vault/route.ts index 117a826e..069b9787 100644 --- a/src/app/api/vault/route.ts +++ b/src/app/api/vault/route.ts @@ -9,14 +9,14 @@ class VaultModule { private readonly kubernetesPath: string; constructor(vaultRole: string, kubernetesPath: string) { + this.vaultRole = vaultRole; + this.kubernetesPath = kubernetesPath; + this.isKubelogged = false; this.vaultClient = vault({ apiVersion: "v1", endpoint: "https://vault-dev.factory.social.gouv.fr", kubernetesPath: this.kubernetesPath, }); - this.vaultRole = vaultRole; - this.kubernetesPath = kubernetesPath; - this.isKubelogged = false; } async readSecret(path: string): Promise {