From a64258e7748134d4e0a114e0d893c139ad9c331b Mon Sep 17 00:00:00 2001 From: Fridon Date: Mon, 20 Jun 2022 17:47:11 +0400 Subject: refactor --- src/environment/environment.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/environment/environment.ts (limited to 'src/environment') 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/std@0.144.0/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", +}; -- cgit v1.2.3