diff options
author | hakabahitoyo <hakabahitoyo@example.com> | 2018-07-14 00:21:38 +0900 |
---|---|---|
committer | hakabahitoyo <hakabahitoyo@example.com> | 2018-07-14 00:21:38 +0900 |
commit | f944f8157ac078aef5edda64059a5d6d3837bf53 (patch) | |
tree | dfd46744bf5859357e51645c399dff7995696635 | |
parent | d93789dfde3c44c76a56732088a897ddddfe9716 (diff) | |
download | pleroma-f944f8157ac078aef5edda64059a5d6d3837bf53.tar.gz |
/api/v1/suggestions endpoint
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 5 | ||||
-rw-r--r-- | lib/pleroma/web/router.ex | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 09e6b0b59..0184d52c8 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -1070,4 +1070,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do |> put_status(500) |> json("Something went wrong") end + + def suggestions(conn, _) do + conn + |> json("SUGGESTIONS!") + end end diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 34652cdde..f1c08c681 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -140,6 +140,8 @@ defmodule Pleroma.Web.Router do get("/domain_blocks", MastodonAPIController, :domain_blocks) post("/domain_blocks", MastodonAPIController, :block_domain) delete("/domain_blocks", MastodonAPIController, :unblock_domain) + + get("/suggestions", MastodonAPIController, :suggestions) end scope "/api/web", Pleroma.Web.MastodonAPI do |