0.13.24 : move the conversations endpoint off a colliding path
Build release Docker image / Build Docker Images (push) Successful in 8m22s
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:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "harmony-back",
|
||||
"version": "0.13.23",
|
||||
"version": "0.13.24",
|
||||
"private": true,
|
||||
"description": "A Strapi application",
|
||||
"scripts": {
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user