diff options
author | 2021-10-01 21:51:55 +0530 | |
---|---|---|
committer | 2021-10-01 21:51:55 +0530 | |
commit | 204a80708e6e0a2189de16438a3eb4b57ef84987 (patch) | |
tree | a8fa3afb58dbfec67bced4281837d33fd4e71413 /src/internal-server/app/Controllers/Http/UserController.js | |
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/UserController.js')
-rw-r--r-- | src/internal-server/app/Controllers/Http/UserController.js | 6 |
1 files changed, 2 insertions, 4 deletions
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) => |