summaryrefslogtreecommitdiff
path: root/lib/pleroma/plugs/frontend_plug.ex
blob: 9b6f50696e77878799839512e49480c4eee9f0f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Pleroma: A lightweight social networking server
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.FrontendPlug do
  import Plug.Conn

  @behaviour Plug

  def init(opts), do: opts

  def call(conn, _opts) do
    put_private(conn, :frontend, Pleroma.Frontend.get_config())
  end
end