logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

frontend_view.ex (636B)


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