0.13.24 : move the conversations endpoint off a colliding path
Build release Docker image / Build Docker Images (push) Successful in 8m22s

/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 <noreply@anthropic.com>
This commit is contained in:
2026-07-27 17:11:18 +02:00
parent a93d48cada
commit ec1d9bc1a4
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "harmony-back", "name": "harmony-back",
"version": "0.13.23", "version": "0.13.24",
"private": true, "private": true,
"description": "A Strapi application", "description": "A Strapi application",
"scripts": { "scripts": {
@@ -6,7 +6,10 @@ export default {
routes: [ routes: [
{ {
method: "GET", 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", handler: "chat-conversation-member.mine",
}, },
], ],