Merge remote-tracking branch 'pleroma/develop' into mastodon-lookup
[akkoma] / lib / pleroma / web / pleroma_api / views / app_view.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Web.PleromaAPI.AppView do
6 use Pleroma.Web, :view
7
8 def render("index.json", %{apps: apps}) do
9 render_many(apps, Pleroma.Web.MastodonAPI.AppView, "show.json")
10 end
11 end