diff options
Diffstat (limited to 'src/environment')
| -rw-r--r-- | src/environment/environment.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/environment/environment.ts b/src/environment/environment.ts index ef48c3d..18434f8 100644 --- a/src/environment/environment.ts +++ b/src/environment/environment.ts @@ -2,9 +2,15 @@ import home_dir from "https://deno.land/x/[email protected]/home_dir/mod.ts"; import { join } from "https://deno.land/[email protected]/path/mod.ts"; export const environment = { + // Backend from where the information is fetched baseUrl: "https://restcountries.com/v3.1/", + // Update cache if it has been longer than given DAYS since last sync syncInterval: 7, + // Directory where country information should be stored. cacheDir: join(home_dir() as string, ".cache", "countryfetch"), + // Determines the size of ASCII art flag size + flagWidth: 40, + // Fields that should be fetched from API queries: - "all?fields=name,capital,currencies,population,flag,languages,region,subregion,timezones,latlng,capitalInfo,tld", + "all?fields=name,capital,currencies,population,flag,languages,region,subregion,timezones,latlng,capitalInfo,tld,flags", }; |
