Credo fixes.
[akkoma] / lib / pleroma / web / router.ex
index 0c56318ee8c8528c238d89ebec674baef551f45d..aad2e3b98ab0ff8ded7872b27d67f7d0c267b56c 100644 (file)
@@ -275,7 +275,7 @@ defmodule Pleroma.Web.Router do
     scope [] do
       pipe_through(:authenticated_api)
 
-      post("/chats/by-ap-id/:ap_id", ChatController, :create)
+      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)