From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED, URIBL_DBL_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1696301540; bh=P5LgrqmTHacywr60bYcwNx1TI7QIIemjXhPmxPDTPXU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TXzV+usZLHlKNuc7mPVLfksitCftk2pwQo7xORVutkQzGa6aHRFv8AKGvCFJwnetq dxWm785JxbQQdd+7g02lBDWdK7ZvK0r++l+DSxgzds6iAqSoFiMsLVJBoWcRhBmGxH BqkgqH6ivzxlD4ZdxP97LPlNldKaQBglXRJlNfiBclUJcsFoLJVAog/wW80fqyMGEs gHa6r1Jrs9V9BfiQghEYmbW5nMbazoyNdzCNY4Zw4w1CSLQ4R9uc1khAiNIY2n2oVo Py9yr7RRicvYBA+MelfZleQ05sNAn4w3JyjugW8gznXtAA6HhWyP1MOxMYDAfmTmu1 2qwY0HhMi2L1g== Received: from localhost.localdomain (unknown [175.158.50.50]) by gnuweeb.org (Postfix) with ESMTPSA id DA66A24B8B9; Tue, 3 Oct 2023 09:52:18 +0700 (WIB) From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , Irvan Malik Azantha , Memet Zx , GNU/Weeb Mailing List Subject: [PATCH v1 03/13] feat(lib): add API_URL and STORAGE_URL constant variable Date: Tue, 3 Oct 2023 09:51:36 +0700 Message-Id: <20231003025146.1557-4-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20231003025146.1557-1-kiizuha@gnuweeb.org> References: <20231003025146.1557-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: These variable will be used to make fetching the API URL and getting the asset image files easier. Signed-off-by: Muhammad Rizki --- src/lib/constants.ts | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/lib/constants.ts diff --git a/src/lib/constants.ts b/src/lib/constants.ts new file mode 100644 index 0000000..21a5e33 --- /dev/null +++ b/src/lib/constants.ts @@ -0,0 +1,2 @@ +export const API_URL = "https://telegram-bot.teainside.org"; +export const STORAGE_URL = API_URL + "/storage/files/"; -- Muhammad Rizki