aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/router.ex
diff options
context:
space:
mode:
authoreal <eal@waifu.club>2017-10-25 21:02:42 +0300
committereal <eal@waifu.club>2017-10-28 17:09:32 +0300
commit813d2eaaf08efcb7aa87f6270e98c760b0b60b99 (patch)
tree06257a37fb92d98ebd3cffb2c68008ce545d9b43 /lib/pleroma/web/router.ex
parent529351673090d8165bb0c54f9e957e611fcacd72 (diff)
downloadpleroma-813d2eaaf08efcb7aa87f6270e98c760b0b60b99.tar.gz
Add mastodon API endpoint for follow
Diffstat (limited to 'lib/pleroma/web/router.ex')
-rw-r--r--lib/pleroma/web/router.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex
index cb818b3cc..45c47eefb 100644
--- a/lib/pleroma/web/router.ex
+++ b/lib/pleroma/web/router.ex
@@ -62,6 +62,8 @@ defmodule Pleroma.Web.Router do
post "/accounts/:id/mute", MastodonAPIController, :relationship_noop
post "/accounts/:id/unmute", MastodonAPIController, :relationship_noop
+ post "/follows", MastodonAPIController, :follow
+
get "/blocks", MastodonAPIController, :empty_array
get "/domain_blocks", MastodonAPIController, :empty_array
get "/follow_requests", MastodonAPIController, :empty_array