Current section
Files
Jump to
Current section
Files
lib/main_proxy/plug/not_found.ex
defmodule MainProxy.Plug.NotFound do
@moduledoc false
@behaviour Plug
import Plug.Conn
require Logger
@impl true
def init(options) do
options
end
@impl true
def call(conn, opts) do
Logger.debug("MainProxy.NotFound call opts: #{inspect(opts)}")
conn
|> send_resp(404, "No backends matched")
end
end