Fix masto api context.
[akkoma] / lib / pleroma / web / router.ex
index 33b51fd345e45ce4427b501cbfb4b802c505cf8a..5246b3c415ed45aebbfdde50eb915c805b56ae28 100644 (file)
@@ -47,6 +47,7 @@ defmodule Pleroma.Web.Router do
     get "/timelines/public", MastodonAPIController, :public_timeline
 
     get "/statuses/:id", MastodonAPIController, :get_status
+    get "/statuses/:id/context", MastodonAPIController, :get_context
   end
 
   scope "/api/v1", Pleroma.Web.MastodonAPI do
@@ -60,6 +61,9 @@ defmodule Pleroma.Web.Router do
 
     post "/statuses/:id/reblog", MastodonAPIController, :reblog_status
     post "/statuses/:id/favourite", MastodonAPIController, :fav_status
+    post "/statuses/:id/unfavourite", MastodonAPIController, :unfav_status
+
+    get "/notifications", MastodonAPIController, :empty_array
   end
 
   scope "/api", Pleroma.Web do