diff options
author | 2021-09-01 09:29:49 +0530 | |
---|---|---|
committer | 2021-09-01 09:29:49 +0530 | |
commit | d0bad11661cb93756891e7fafe729b7f4e415fb1 (patch) | |
tree | 80faf451477cd9ae216ff5a8f92958c4ab23065a /src/internal-server/app/Controllers/Http | |
parent | build(deps): bump tar from 4.4.15 to 4.4.18 (#1852) (diff) | |
download | ferdium-app-d0bad11661cb93756891e7fafe729b7f4e415fb1.tar.gz ferdium-app-d0bad11661cb93756891e7fafe729b7f4e415fb1.tar.zst ferdium-app-d0bad11661cb93756891e7fafe729b7f4e415fb1.zip |
* fix issue with workspace feature not being turned on, and then randomly turning on somehow.
* when deleting the active workspace, auto-select the default workspace.
* consolidated the toggling of features into a single place in the config file.
Co-authored-by: Sadetdin EYILI <sadetdin.eyili@ekino.com>
Signed-off-by: Vijay A <avijayr@protonmail.com>
Diffstat (limited to 'src/internal-server/app/Controllers/Http')
-rw-r--r-- | src/internal-server/app/Controllers/Http/StaticController.js | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/internal-server/app/Controllers/Http/StaticController.js b/src/internal-server/app/Controllers/Http/StaticController.js index b9a145061..28c5389a9 100644 --- a/src/internal-server/app/Controllers/Http/StaticController.js +++ b/src/internal-server/app/Controllers/Http/StaticController.js | |||
@@ -2,21 +2,15 @@ | |||
2 | * Controller for routes with static responses | 2 | * Controller for routes with static responses |
3 | */ | 3 | */ |
4 | 4 | ||
5 | import { DEFAULT_FEATURES_CONFIG } from '../../../../config'; | ||
6 | |||
7 | // TODO: This endpoint and associated code needs to be remoeved as cleanup | ||
5 | class StaticController { | 8 | class StaticController { |
6 | // Enable all features | 9 | // Enable all features |
7 | features({ | 10 | features({ |
8 | response, | 11 | response, |
9 | }) { | 12 | }) { |
10 | return response.send({ | 13 | return response.send(DEFAULT_FEATURES_CONFIG); |
11 | isServiceProxyEnabled: true, | ||
12 | isWorkspaceEnabled: true, | ||
13 | isAnnouncementsEnabled: true, | ||
14 | isSettingsWSEnabled: false, | ||
15 | isMagicBarEnabled: true, | ||
16 | isTodosEnabled: true, | ||
17 | subscribeURL: 'https://getferdi.com', | ||
18 | hasInlineCheckout: true, | ||
19 | }); | ||
20 | } | 14 | } |
21 | 15 | ||
22 | // Return an empty array | 16 | // Return an empty array |
@@ -34,4 +28,4 @@ class StaticController { | |||
34 | } | 28 | } |
35 | } | 29 | } |
36 | 30 | ||
37 | module.exports = StaticController; | 31 | export default StaticController; |