Credo fixes.
[akkoma] / lib / pleroma / web / router.ex
index 153802a432f42ff702b0684e87bce09ceab27d93..0c56318ee8c8528c238d89ebec674baef551f45d 100644 (file)
@@ -272,6 +272,15 @@ defmodule Pleroma.Web.Router do
   end
 
   scope "/api/v1/pleroma", Pleroma.Web.PleromaAPI do
+    scope [] do
+      pipe_through(:authenticated_api)
+
+      post("/chats/by-ap-id/:ap_id", ChatController, :create)
+      get("/chats", ChatController, :index)
+      get("/chats/:id/messages", ChatController, :messages)
+      post("/chats/:id/messages", ChatController, :post_chat_message)
+    end
+
     scope [] do
       pipe_through(:authenticated_api)