aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal-server/app/Controllers/Http/StaticController.js
blob: 33e0e52d918af49f988b959032194defaae7b636 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
 * 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;