fix: restreindre bulk-translate aux appels par token API
This commit is contained in:
@@ -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: [] },
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user