From 91c69428ed0dc2dd26b00c6dd5a6684f25515a34 Mon Sep 17 00:00:00 2001 From: Abin Mn Date: Tue, 26 Oct 2021 21:18:20 +0530 Subject: Cleanup/remove feature toggle for todo, workspace, service proxy (#2134) * Remove DEFAULT_FEATURES_CONFIG from config * Remove static controller Co-authored-by: Madhuri B --- .../app/Controllers/Http/StaticController.js | 20 -------------------- src/internal-server/start/routes.js | 5 ----- 2 files changed, 25 deletions(-) delete mode 100644 src/internal-server/app/Controllers/Http/StaticController.js (limited to 'src/internal-server') 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 @@ -/** - * Controller for routes with static responses - */ - -import { DEFAULT_FEATURES_CONFIG } from '../../../../config'; - -// TODO: This endpoint and associated code needs to be remoeved as cleanup -class StaticController { - // Enable all features - features({ response }) { - return response.send(DEFAULT_FEATURES_CONFIG); - } - - // Return an empty array - emptyArray({ response }) { - return response.send([]); - } -} - -export default StaticController; diff --git a/src/internal-server/start/routes.js b/src/internal-server/start/routes.js index 50b9448cf..177035dac 100644 --- a/src/internal-server/start/routes.js +++ b/src/internal-server/start/routes.js @@ -55,17 +55,12 @@ Route.group(() => { Route.get('recipes', 'RecipeController.list'); Route.get('recipes/download/:recipe', 'RecipeController.download'); Route.get('recipes/search', 'RecipeController.search'); - Route.get('recipes/update', 'StaticController.emptyArray'); // Workspaces Route.put('workspace/:id', 'WorkspaceController.edit'); Route.delete('workspace/:id', 'WorkspaceController.delete'); Route.post('workspace', 'WorkspaceController.create'); Route.get('workspace', 'WorkspaceController.list'); - - // Static responses - Route.get('features/:mode?', 'StaticController.features'); - Route.get('services', 'StaticController.emptyArray'); }) .prefix(API_VERSION) .middleware(OnlyAllowFerdi); -- cgit v1.2.3-70-g09d2