aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal-server/app/Controllers/Http/StaticController.js
blob: 99723940ac6e270c7eb5f50cf76a181c41e7f7fe (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
/**
 * Controller for routes with static responses
 */

class StaticController {
  // Enable all features
  features({
    response,
  }) {
    return response.send({
      isServiceProxyEnabled: true,
      isWorkspaceEnabled: true,
      isAnnouncementsEnabled: true,
      isSettingsWSEnabled: false,
      isMagicBarEnabled: true,
      isTodosEnabled: true,
      subscribeURL: 'https://getferdi.com',
      hasInlineCheckout: true,
    });
  }

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

module.exports = StaticController;