Conversation: Add endpoint to get a conversation by id.
[akkoma] / lib / pleroma / web / router.ex
index d475fc973759e1a27fb634bc23521d4d6a585a47..f0b6a02e98a40ef9a1ebbffc14df1cbbeb1cdf88 100644 (file)
@@ -259,6 +259,17 @@ defmodule Pleroma.Web.Router do
     end
   end
 
+  scope "/api/v1/pleroma", Pleroma.Web.PleromaAPI do
+    pipe_through(:authenticated_api)
+
+    scope [] do
+      pipe_through(:oauth_write)
+      get("/conversations/:id/statuses", PleromaAPIController, :conversation_statuses)
+      get("/conversations/:id", PleromaAPIController, :conversation)
+      patch("/conversations/:id", PleromaAPIController, :update_conversation)
+    end
+  end
+
   scope "/api/v1", Pleroma.Web.MastodonAPI do
     pipe_through(:authenticated_api)