Credo fixes.
[akkoma] / lib / pleroma / web / router.ex
index 153802a432f42ff702b0684e87bce09ceab27d93..aad2e3b98ab0ff8ded7872b27d67f7d0c267b56c 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-account-id/: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)