akkoma/lib/pleroma/web/twitter_api/controllers/util_controller.ex
2017-06-20 17:55:57 +03:00

19 lines
354 B
Elixir

defmodule Pleroma.Web.TwitterAPI.UtilController do
use Pleroma.Web, :controller
alias Pleroma.Web
def help_test(conn, _params) do
json(conn, "ok")
end
def config(conn, _params) do
json(conn, %{
site: %{
name: Web.base_url,
server: Web.base_url,
textlimit: -1
}
})
end
end