From edaa295225d6a1c87ab7f7e7b35f6a055110a04c Mon Sep 17 00:00:00 2001 From: Mahmoud Emad Date: Mon, 27 May 2024 16:53:55 +0300 Subject: [PATCH] fix: Updated the BASE_URL --- clients/dart/switchkeys/lib/src/api/routes.dart | 3 ++- clients/typescript/src/api/request/routes.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/clients/dart/switchkeys/lib/src/api/routes.dart b/clients/dart/switchkeys/lib/src/api/routes.dart index f657de8..b86bdbc 100644 --- a/clients/dart/switchkeys/lib/src/api/routes.dart +++ b/clients/dart/switchkeys/lib/src/api/routes.dart @@ -39,7 +39,8 @@ enum EndPoints { abstract class SwitchKeysRoutes { static final env = DotEnv()..load(); - static final String baseUrl = env['BASE_URL'] ?? ""; + static final String baseUrl = + env['BASE_URL'] ?? "https://switchkeysbknd.gent02.dev.grid.tf/"; static String getRoute(EndPoints endpoint, [List? args]) { switch (endpoint) { diff --git a/clients/typescript/src/api/request/routes.ts b/clients/typescript/src/api/request/routes.ts index b88a14e..c5e3423 100644 --- a/clients/typescript/src/api/request/routes.ts +++ b/clients/typescript/src/api/request/routes.ts @@ -12,7 +12,7 @@ class SwitchKeysAuthRoutes { * Constructs a new SwitchKeysAuthRoutes instance. */ constructor() { - this.BASE_URL = process.env.BASE_URL || ""; + this.BASE_URL = process.env.BASE_URL || "https://switchkeysbknd.gent02.dev.grid.tf/"; } /**