MastoAPI: Remove domain ending from account name.
[akkoma] / lib / pleroma / web / router.ex
index 33c3aa53d0d4b7baae74e087fd5f783330577aef..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
@@ -61,6 +64,8 @@ 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, :notifications
   end
 
   scope "/api", Pleroma.Web do