/api/v1/suggestions endpoint
authorhakabahitoyo <hakabahitoyo@example.com>
Fri, 13 Jul 2018 15:21:38 +0000 (00:21 +0900)
committerhakabahitoyo <hakabahitoyo@example.com>
Fri, 13 Jul 2018 15:21:38 +0000 (00:21 +0900)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
lib/pleroma/web/router.ex

index 09e6b0b59ce22db8518a05a3eafbd0dd7e41c2d5..0184d52c8fdd4bbdccb5d7d8257789631bc0cfed 100644 (file)
@@ -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
index 34652cdde97994d83e93fd4023ad8a806829b7ac..f1c08c681bfd9690f6489d23fb875c6a063cb02b 100644 (file)
@@ -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