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=1696657519; bh=P5LgrqmTHacywr60bYcwNx1TI7QIIemjXhPmxPDTPXU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Nd4eGES4/SlazNq+TF6X6We8kK46mKVfdNT+lPqEvDSX5ZYkiJ2L/UVqlYqFuiaNg 2o2c3VPmMeXr5Y0pRiWCTBZuNUu9JmkMczpjI4aOF0VIrIpXkE6s24HZXpshxamroH vwR4fgke/TFdNHezq8aLBeBuMmlZRnYwOJIWOQIW92wOP6ZI5Q3ubjBQAC7jvlxOEN wjR5erxPdg1gN4pUDa6Hnnx33oZkl9M4wIG92+hxsHHdcHZLbMVzHl9cknkw3g/YRk osb0jKAAldlXI20ldhNmT/DR8T0BOMWBzyXWwC9rI9iObthNHk3sSkkC9UP+o0MAam wR1Kh3po/xz+w== Received: from localhost.localdomain (unknown [175.158.50.50]) by gnuweeb.org (Postfix) with ESMTPSA id 3548824B97E; Sat, 7 Oct 2023 12:45: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 v2 04/14] feat(lib): add API_URL and STORAGE_URL constant variable Date: Sat, 7 Oct 2023 12:44:36 +0700 Message-Id: <20231007054446.1204-5-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20231007054446.1204-1-kiizuha@gnuweeb.org> References: <20231007054446.1204-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