mock /api/v1/suggestions

This commit is contained in:
hakabahitoyo 2018-07-14 00:44:18 +09:00
parent f944f8157a
commit 4a21c1b343

View File

@ -1071,8 +1071,12 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|> json("Something went wrong") |> json("Something went wrong")
end end
def suggestions(conn, _) do def suggestions(%{assigns: %{user: user}} = conn, _) do
res = %{
host: (String.replace Web.base_url(), "https://", ""),
user: user.nickname
}
conn conn
|> json("SUGGESTIONS!") |> json(res)
end end
end end