Add help/test resource

This commit is contained in:
dtluna 2017-04-10 15:54:53 +03:00
commit 9383c0aada
2 changed files with 5 additions and 0 deletions

View file

@ -83,6 +83,10 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
|> send_resp(200, response)
end
def help_test(conn, _) do
conn |> json_reply(200, Poison.encode!("ok"))
end
defp json_reply(conn, status, json) do
conn
|> put_resp_content_type("application/json")