feat(auth): add authorization middleware to /api/v1/text-to-speech

master
adriano 2023-10-09 15:20:03 -03:00
parent 7bfbb8f937
commit 1357f495b7
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ const { authorization, } = require('../middleware/authentication')
const { getSentiment, getAudioFromText, getVoiceConfig } = require('../controllers/naturalLanguageController') const { getSentiment, getAudioFromText, getVoiceConfig } = require('../controllers/naturalLanguageController')
router.route('/sentiment').post(authorization, getSentiment) router.route('/sentiment').post(authorization, getSentiment)
router.route('/text-to-speech').get(getAudioFromText) router.route('/text-to-speech').get(authorization, getAudioFromText)
router.route('/voice-config').get(getVoiceConfig) router.route('/voice-config').get(getVoiceConfig)
module.exports = router module.exports = router