diff options
author | 2021-10-27 07:25:26 +0530 | |
---|---|---|
committer | 2021-10-27 07:25:26 +0530 | |
commit | 477bdd76a7405ff10a5cfabdec00ee9ae02f2698 (patch) | |
tree | bfa8cfb70e6852b9f535ccfd9b05712269a70dc1 /src/internal-server/app/Controllers | |
parent | Bumped up ferdi beta version to '5.6.3-beta.2' (diff) | |
parent | 5.6.3-nightly.44 [skip ci] (diff) | |
download | ferdium-app-477bdd76a7405ff10a5cfabdec00ee9ae02f2698.tar.gz ferdium-app-477bdd76a7405ff10a5cfabdec00ee9ae02f2698.tar.zst ferdium-app-477bdd76a7405ff10a5cfabdec00ee9ae02f2698.zip |
Merge branch 'nightly' into release
Diffstat (limited to 'src/internal-server/app/Controllers')
-rw-r--r-- | src/internal-server/app/Controllers/Http/ServiceController.js | 2 | ||||
-rw-r--r-- | src/internal-server/app/Controllers/Http/StaticController.js | 20 |
2 files changed, 1 insertions, 21 deletions
diff --git a/src/internal-server/app/Controllers/Http/ServiceController.js b/src/internal-server/app/Controllers/Http/ServiceController.js index dedb5a12b..c4ca5a113 100644 --- a/src/internal-server/app/Controllers/Http/ServiceController.js +++ b/src/internal-server/app/Controllers/Http/ServiceController.js | |||
@@ -6,7 +6,7 @@ const { v4: uuid } = require('uuid'); | |||
6 | const path = require('path'); | 6 | const path = require('path'); |
7 | const fs = require('fs-extra'); | 7 | const fs = require('fs-extra'); |
8 | const { LOCAL_HOSTNAME, DEFAULT_SERVICE_ORDER } = require('../../../../config'); | 8 | const { LOCAL_HOSTNAME, DEFAULT_SERVICE_ORDER } = require('../../../../config'); |
9 | const { API_VERSION } = require('../../../../environment'); | 9 | const { API_VERSION } = require('../../../../environment-remote'); |
10 | 10 | ||
11 | const hostname = LOCAL_HOSTNAME; | 11 | const hostname = LOCAL_HOSTNAME; |
12 | const port = Env.get('PORT'); | 12 | const port = Env.get('PORT'); |
diff --git a/src/internal-server/app/Controllers/Http/StaticController.js b/src/internal-server/app/Controllers/Http/StaticController.js deleted file mode 100644 index 33e0e52d9..000000000 --- a/src/internal-server/app/Controllers/Http/StaticController.js +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | /** | ||
2 | * Controller for routes with static responses | ||
3 | */ | ||
4 | |||
5 | import { DEFAULT_FEATURES_CONFIG } from '../../../../config'; | ||
6 | |||
7 | // TODO: This endpoint and associated code needs to be remoeved as cleanup | ||
8 | class StaticController { | ||
9 | // Enable all features | ||
10 | features({ response }) { | ||
11 | return response.send(DEFAULT_FEATURES_CONFIG); | ||
12 | } | ||
13 | |||
14 | // Return an empty array | ||
15 | emptyArray({ response }) { | ||
16 | return response.send([]); | ||
17 | } | ||
18 | } | ||
19 | |||
20 | export default StaticController; | ||