From c1a29d39f71aceb28bb096f7c3d972fbe4b304b2 Mon Sep 17 00:00:00 2001 From: fearandesire <63979371+fearandesire@users.noreply.github.com> Date: Sun, 2 Jun 2024 15:53:37 -0400 Subject: [PATCH] refactor: Docs for Khronos API module; Use new API auth header --- src/utils/api/Khronos/KhronosInstances.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/utils/api/Khronos/KhronosInstances.ts b/src/utils/api/Khronos/KhronosInstances.ts index b27f646c..eda74823 100644 --- a/src/utils/api/Khronos/KhronosInstances.ts +++ b/src/utils/api/Khronos/KhronosInstances.ts @@ -1,5 +1,10 @@ -// noinspection ES6PreferShortImport - +/** + * @module KhronosApi + * @readonly + * @category KhronosApi + * @description This module is used to establish access to the external API system, Khronos. + * Khronos is the main API used for Pluto and handles most of it's features + */ import { AccountsApi, BetslipsApi, @@ -18,7 +23,7 @@ dotenv.config({ export const KH_API_CONFIG = new Configuration({ basePath: `${process.env.KH_API_URL}`, headers: { - 'admin-token': `${process.env.KH_API_TOKEN}`, + 'x-api-key': `${process.env.KH_PLUTO_CLIENT_KEY}`, }, })