1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.AdminAPI.FrontendView do
8 def render("index.json", %{frontends: frontends}) do
9 render_many(frontends, __MODULE__, "show.json")
12 def render("show.json", %{frontend: frontend}) do
14 name: frontend["name"],
16 build_url: frontend["build_url"],
18 installed: frontend["installed"],
19 installed_refs: frontend["installed_refs"]