2017-06-20 14:55:57 +00:00
|
|
|
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,
|
2017-08-24 11:36:28 +00:00
|
|
|
textlimit: 5000
|
2017-06-20 14:55:57 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|