17 lines
457 B
Elixir
17 lines
457 B
Elixir
|
# Pleroma: A lightweight social networking server
|
||
|
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
|
||
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||
|
|
||
|
defmodule Pleroma.Web.OpenSearchController do
|
||
|
use Pleroma.Web, :controller
|
||
|
|
||
|
plug(:skip_auth when action == :show)
|
||
|
|
||
|
@doc "GET /opensearch.xml"
|
||
|
def show(conn, _params) do
|
||
|
conn
|
||
|
|> put_resp_content_type("application/opensearchdescription+xml")
|
||
|
|> render("opensearch.xml")
|
||
|
end
|
||
|
end
|