manifest_controller.rb 837 Bytes
Newer Older
flaburgan's avatar
flaburgan committed
1 2 3
# frozen_string_literal: true

class ManifestController < ApplicationController
4 5 6 7
  def show # rubocop:disable Metrics/MethodLength
    render json: {
      short_name:       AppConfig.settings.pod_name,
      name:             AppConfig.settings.pod_name,
8
      description:      "diaspora* is a free, decentralized and privacy-respecting social network",
9
      icons:            [
flaburgan's avatar
flaburgan committed
10
        {
11 12 13 14 15 16 17 18
          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"
flaburgan's avatar
flaburgan committed
19 20
        }
      ],
21 22 23 24 25
      start_url:        "/",
      background_color: "#000000",
      display:          "standalone",
      theme_color:      "#000000"
    }
flaburgan's avatar
flaburgan committed
26 27
  end
end