Class: ManifestController

Inherits:
ApplicationController show all
Defined in:
app/controllers/manifest_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject

rubocop:disable Metrics/MethodLength


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'app/controllers/manifest_controller.rb', line 4

def show # rubocop:disable Metrics/MethodLength
  render json: {
    short_name:       AppConfig.settings.pod_name,
    name:             AppConfig.settings.pod_name,
    description:      "diaspora* is a free, decentralized and privacy-respecting social network",
    icons:            [
      {
        src:   helpers.image_path("branding/logos/app-icon.png"),
        type:  "image/png",
        sizes: "192x192"
      },
      {
        src:   helpers.image_path("branding/logos/app-icon-512.png"),
        type:  "image/png",
        sizes: "512x512"
      }
    ],
    start_url:        "/",
    background_color: "#000000",
    display:          "standalone",
    theme_color:      "#000000"
  }
end