defmodule AprsmeWeb.Plugs.AgentDiscoveryLinks do
  @moduledoc false

  @behaviour Plug

  import Plug.Conn

  @link_header ~s(</.well-known/api-catalog>; rel="api-catalog", </api>; rel="service-doc")

  @impl true
  def init(opts), do: opts

  @impl true
  def call(conn, _opts) do
    put_resp_header(conn, "link", @link_header)
  end
end
