fix: restreindre bulk-translate aux appels par token API

This commit is contained in:
2026-07-04 09:55:45 +04:00
parent 9fa37c516c
commit 416032942a
3 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ module.exports = {
method: 'POST',
path: '/paroles/bulk-translate',
handler: 'parole.bulkTranslate',
config: { policies: [], middlewares: [] },
config: { policies: ['api::parole.is-api-token'], middlewares: [] },
},
],
};