aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2023-08-13 19:30:40 +0530
committerRitesh Ghosh <[email protected]>2023-08-13 19:30:40 +0530
commite8b3630caffc911f9b722402056ec924d67dcfce (patch)
tree42e1a0e5749bdc8e396adf231e8f11f61e6aa6bf /src/utils
parenta92f1404910d6dd31885efc4b2e750033800b527 (diff)
downloadaniwatch-api-e8b3630caffc911f9b722402056ec924d67dcfce.tar.xz
aniwatch-api-e8b3630caffc911f9b722402056ec924d67dcfce.zip
refactor(env): added all envs
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/constants.ts18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/utils/constants.ts b/src/utils/constants.ts
index 0c38643..146544a 100644
--- a/src/utils/constants.ts
+++ b/src/utils/constants.ts
@@ -1,10 +1,12 @@
-import env from "../config/env";
+export const ACCEPT_ENCODING_HEADER = "gzip, deflate, br";
-export const USER_AGENT_HEADER = env.APP_SRC_USER_AGENT;
-export const ACCEPT_HEADER = env.APP_SRC_ACCEPT_HEADER;
-export const ACCEPT_ENCODING_HEADER = env.APP_SRC_ACCEPT_ENCODING_HEADER;
+export const USER_AGENT_HEADER =
+ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4692.71 Safari/537.36";
-export const SRC_BASE_URL = env.APP_SRC_BASE_URL;
-export const SRC_AJAX_URL = env.APP_SRC_AJAX_URL;
-export const SRC_HOME_URL = env.APP_SRC_HOME_URL;
-export const SRC_SEARCH_URL = env.APP_SRC_SEARCH_URL;
+export const ACCEPT_HEADER =
+ "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9";
+
+export const SRC_BASE_URL = "https://aniwatch.to";
+export const SRC_AJAX_URL = "https://aniwatch.to/ajax";
+export const SRC_HOME_URL = "https://aniwatch.to/home";
+export const SRC_SEARCH_URL = "https://aniwatch.to/search";