forked from AkkomaGang/akkoma
/api/v1/suggestions endpoint
This commit is contained in:
parent
d93789dfde
commit
f944f8157a
2 changed files with 7 additions and 0 deletions
|
@ -1070,4 +1070,9 @@ def errors(conn, _) do
|
||||||
|> put_status(500)
|
|> put_status(500)
|
||||||
|> json("Something went wrong")
|
|> json("Something went wrong")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def suggestions(conn, _) do
|
||||||
|
conn
|
||||||
|
|> json("SUGGESTIONS!")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -140,6 +140,8 @@ def user_fetcher(username) do
|
||||||
get("/domain_blocks", MastodonAPIController, :domain_blocks)
|
get("/domain_blocks", MastodonAPIController, :domain_blocks)
|
||||||
post("/domain_blocks", MastodonAPIController, :block_domain)
|
post("/domain_blocks", MastodonAPIController, :block_domain)
|
||||||
delete("/domain_blocks", MastodonAPIController, :unblock_domain)
|
delete("/domain_blocks", MastodonAPIController, :unblock_domain)
|
||||||
|
|
||||||
|
get("/suggestions", MastodonAPIController, :suggestions)
|
||||||
end
|
end
|
||||||
|
|
||||||
scope "/api/web", Pleroma.Web.MastodonAPI do
|
scope "/api/web", Pleroma.Web.MastodonAPI do
|
||||||
|
|
Loading…
Reference in a new issue