From ec1d9bc1a43d29e2a7a9a0f288a082ebc2b753d8 Mon Sep 17 00:00:00 2001 From: julien vdb Date: Mon, 27 Jul 2026 17:11:18 +0200 Subject: [PATCH] 0.13.24 : move the conversations endpoint off a colliding path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /chat-conversation-members/mine pouvait être capté par le routeur cœur comme un findOne avec id = "mine", selon l'ordre d'enregistrement des routes — et les deux répondent 403 sans jeton, ce qui rendait le diagnostic impossible. L'endpoint devient /api/my-chat-conversations. Co-Authored-By: Claude Opus 5 --- package.json | 2 +- src/api/chat-conversation-member/routes/custom.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 848a7d8..27a8460 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "harmony-back", - "version": "0.13.23", + "version": "0.13.24", "private": true, "description": "A Strapi application", "scripts": { diff --git a/src/api/chat-conversation-member/routes/custom.ts b/src/api/chat-conversation-member/routes/custom.ts index 96e482b..2cdb4b7 100644 --- a/src/api/chat-conversation-member/routes/custom.ts +++ b/src/api/chat-conversation-member/routes/custom.ts @@ -6,7 +6,10 @@ export default { routes: [ { method: "GET", - path: "/chat-conversation-members/mine", + // Chemin distinct : sous /chat-conversation-members/:id, le routeur + // cœur capterait « mine » comme un identifiant (findOne), selon l'ordre + // d'enregistrement des routes. + path: "/my-chat-conversations", handler: "chat-conversation-member.mine", }, ],