diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2021-10-01 21:51:55 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2021-10-01 21:51:55 +0530 |
commit | 204a80708e6e0a2189de16438a3eb4b57ef84987 (patch) | |
tree | a8fa3afb58dbfec67bced4281837d33fd4e71413 /src/internal-server/app/Controllers/Http | |
parent | refactor: move 'asarRecipesPath' into 'asar-helpers' (diff) | |
download | ferdium-app-204a80708e6e0a2189de16438a3eb4b57ef84987.tar.gz ferdium-app-204a80708e6e0a2189de16438a3eb4b57ef84987.tar.zst ferdium-app-204a80708e6e0a2189de16438a3eb4b57ef84987.zip |
refactor: split 'environment' into 'environment-remote' with only the remote module dependency
(might be a pre-requisite for the electron v14 upgrade)
Diffstat (limited to 'src/internal-server/app/Controllers/Http')
-rw-r--r-- | src/internal-server/app/Controllers/Http/RecipeController.js | 2 | ||||
-rw-r--r-- | src/internal-server/app/Controllers/Http/UserController.js | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/internal-server/app/Controllers/Http/RecipeController.js b/src/internal-server/app/Controllers/Http/RecipeController.js index 2c7baf2a4..d44839db1 100644 --- a/src/internal-server/app/Controllers/Http/RecipeController.js +++ b/src/internal-server/app/Controllers/Http/RecipeController.js | |||
@@ -6,7 +6,7 @@ const Env = use('Env'); | |||
6 | const fetch = require('node-fetch'); | 6 | const fetch = require('node-fetch'); |
7 | const debug = require('debug')('Ferdi:internalServer:RecipeController'); | 7 | const debug = require('debug')('Ferdi:internalServer:RecipeController'); |
8 | const { LIVE_FERDI_API } = require('../../../../config'); | 8 | const { LIVE_FERDI_API } = require('../../../../config'); |
9 | const { API_VERSION } = require('../../../../environment'); | 9 | const { API_VERSION } = require('../../../../environment-remote'); |
10 | 10 | ||
11 | const RECIPES_URL = `${LIVE_FERDI_API}/${API_VERSION}/recipes`; | 11 | const RECIPES_URL = `${LIVE_FERDI_API}/${API_VERSION}/recipes`; |
12 | 12 | ||
diff --git a/src/internal-server/app/Controllers/Http/UserController.js b/src/internal-server/app/Controllers/Http/UserController.js index 747606da7..9bbd2ff6e 100644 --- a/src/internal-server/app/Controllers/Http/UserController.js +++ b/src/internal-server/app/Controllers/Http/UserController.js | |||
@@ -7,10 +7,8 @@ const btoa = require('btoa'); | |||
7 | const fetch = require('node-fetch'); | 7 | const fetch = require('node-fetch'); |
8 | const { v4: uuid } = require('uuid'); | 8 | const { v4: uuid } = require('uuid'); |
9 | const crypto = require('crypto'); | 9 | const crypto = require('crypto'); |
10 | const { | 10 | const { DEFAULT_APP_SETTINGS } = require('../../../../environment'); |
11 | DEFAULT_APP_SETTINGS, | 11 | const { API_VERSION } = require('../../../../environment-remote'); |
12 | API_VERSION, | ||
13 | } = require('../../../../environment'); | ||
14 | const { default: userAgent } = require('../../../../helpers/userAgent-helpers'); | 12 | const { default: userAgent } = require('../../../../helpers/userAgent-helpers'); |
15 | 13 | ||
16 | const apiRequest = (url, route, method, auth) => | 14 | const apiRequest = (url, route, method, auth) => |