MastoAPI: Remove domain ending from account name.
[akkoma] / lib / pleroma / web / router.ex
index 84bf6791dd2bbd29bbc4efcd323c95ed5c9471a1..161635558b6ddcec1b1040d62fec44903b95826c 100644 (file)
@@ -47,6 +47,9 @@ defmodule Pleroma.Web.Router do
     get "/timelines/public", MastodonAPIController, :public_timeline
 
     get "/statuses/:id", MastodonAPIController, :get_status
+    get "/statuses/:id/context", MastodonAPIController, :get_context
+
+    get "/accounts/:id/statuses", MastodonAPIController, :user_statuses
   end
 
   scope "/api/v1", Pleroma.Web.MastodonAPI do
@@ -62,7 +65,7 @@ defmodule Pleroma.Web.Router do
     post "/statuses/:id/favourite", MastodonAPIController, :fav_status
     post "/statuses/:id/unfavourite", MastodonAPIController, :unfav_status
 
-    get "/notifications", MastodonAPIController, :empty_array
+    get "/notifications", MastodonAPIController, :notifications
   end
 
   scope "/api", Pleroma.Web do