MastoAPI: Add favourited_by/reblogged_by.
[akkoma] / lib / pleroma / web / router.ex
index 0bd8e40c4a28c251cc93617a6ac081c2676058db..05d1e54b56a812d297484d9f2f3fe891fbf7400d 100644 (file)
@@ -55,6 +55,8 @@ defmodule Pleroma.Web.Router do
     post "/statuses/:id/unfavourite", MastodonAPIController, :unfav_status
 
     get "/notifications", MastodonAPIController, :notifications
+
+    post "/media", MastodonAPIController, :upload
   end
 
   scope "/api/v1", Pleroma.Web.MastodonAPI do
@@ -66,6 +68,8 @@ defmodule Pleroma.Web.Router do
 
     get "/statuses/:id", MastodonAPIController, :get_status
     get "/statuses/:id/context", MastodonAPIController, :get_context
+    get "/statuses/:id/favourited_by", MastodonAPIController, :favourited_by
+    get "/statuses/:id/reblogged_by", MastodonAPIController, :reblogged_by
 
     get "/accounts/:id/statuses", MastodonAPIController, :user_statuses
     get "/accounts/:id", MastodonAPIController, :user