diff options
author | Kirill Rogovoy <[email protected]> | 2021-07-20 21:24:52 +0300 |
---|---|---|
committer | Kirill Rogovoy <[email protected]> | 2021-07-20 21:24:52 +0300 |
commit | 5f4611d65e40eae3ca6191a15f68d69ea5a1c4cb (patch) | |
tree | 273dfc086444533d86d580961c92ba8d14781a67 /app/services/api/api-config.ts | |
parent | f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 (diff) |
WIP
Diffstat (limited to 'app/services/api/api-config.ts')
-rw-r--r-- | app/services/api/api-config.ts | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/app/services/api/api-config.ts b/app/services/api/api-config.ts deleted file mode 100644 index b939c0e..0000000 --- a/app/services/api/api-config.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Use this import if you want to use "env.js" file -// const { API_URL } = require("../../config/env") -// Or just specify it directly like this: -const API_URL = 'http://example.com' - -/** - * The options used to configure the API. - */ -export interface ApiConfig { - /** - * The URL of the api. - */ - url: string - - /** - * Milliseconds before we timeout the request. - */ - timeout: number -} - -/** - * The default configuration for the app. - */ -export const DEFAULT_API_CONFIG: ApiConfig = { - url: API_URL || 'https://jsonplaceholder.typicode.com', - timeout: 10000, -} |