in dev, allow dev FE
[akkoma] / lib / pleroma / web / plugs / expect_authenticated_check_plug.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.Plugs.ExpectAuthenticatedCheckPlug do
6 @moduledoc """
7 Marks `Pleroma.Web.Plugs.EnsureAuthenticatedPlug` as expected to be executed later in plug chain.
8
9 No-op plug which affects `Pleroma.Web` operation (is checked with `PlugHelper.plug_called?/2`).
10 """
11
12 use Pleroma.Web, :plug
13
14 def init(options), do: options
15
16 @impl true
17 def perform(conn, _) do
18 conn
19 end
20 end