aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal-server/app/Controllers/Http/StaticController.js
blob: 28c5389a9d73baec36cc851878606d46b8308268 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 * 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([]);
  }

  // Show announcements
  announcement({
    response,
  }) {
    return response.send({});
  }
}

export default StaticController;