feat(auth): add authorization middleware to /api/v1/text-to-speech
parent
7bfbb8f937
commit
1357f495b7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue