aboutsummaryrefslogtreecommitdiff
path: root/src/environment
diff options
context:
space:
mode:
authorFridon <[email protected]>2022-06-20 17:47:11 +0400
committerFridon <[email protected]>2022-06-20 17:47:11 +0400
commita64258e7748134d4e0a114e0d893c139ad9c331b (patch)
treeb81edb45f8aca4d79530a52891ae9f5a998b0098 /src/environment
parent82a2f864b8f676b575d075151d7a2db0fe663b51 (diff)
downloadcountryfetch-a64258e7748134d4e0a114e0d893c139ad9c331b.tar.xz
countryfetch-a64258e7748134d4e0a114e0d893c139ad9c331b.zip
refactor
Diffstat (limited to 'src/environment')
-rw-r--r--src/environment/environment.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/environment/environment.ts b/src/environment/environment.ts
new file mode 100644
index 0000000..0e29225
--- /dev/null
+++ b/src/environment/environment.ts
@@ -0,0 +1,19 @@
+import home_dir from "https://deno.land/x/dir/home_dir/mod.ts";
+import { join } from "https://deno.land/[email protected]/path/mod.ts";
+
+export const environment = {
+ baseUrl: "https://restcountries.com/v3.1/",
+ syncInterval: 7,
+ cacheDir: join(home_dir() as string, ".cache", "countryfetch"),
+ queries:
+ "all?fields=" +
+ "name," +
+ "capital," +
+ "currencies," +
+ "population," +
+ "flag," +
+ "region," +
+ "continent," +
+ "languages," +
+ "region",
+};