aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/router.ex
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-05-21 20:40:35 +0300
committerrinpatch <rinpatch@sdf.org>2019-05-21 20:40:35 +0300
commit63b0b7190cb652cd27d236e3f9daaaf5e50701a6 (patch)
treecf013c3dc45dfd2241202d8ccbc22d1f3cc3610b /lib/pleroma/web/router.ex
parentff61d345020b9ee79b243fb8d23a37a06cc41b8e (diff)
downloadpleroma-63b0b7190cb652cd27d236e3f9daaaf5e50701a6.tar.gz
MastoAPI: Add GET /api/v1/polls/:id
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 6a4e4a1d4..e0611e3fc 100644
--- a/lib/pleroma/web/router.ex
+++ b/lib/pleroma/web/router.ex
@@ -423,6 +423,8 @@ defmodule Pleroma.Web.Router do
get("/statuses/:id", MastodonAPIController, :get_status)
get("/statuses/:id/context", MastodonAPIController, :get_context)
+ get("/polls/:id", MastodonAPIController, :get_poll)
+
get("/accounts/:id/statuses", MastodonAPIController, :user_statuses)
get("/accounts/:id/followers", MastodonAPIController, :followers)
get("/accounts/:id/following", MastodonAPIController, :following)