perf: config 接口添加权限验证

main
ChenZhaoYu 2 years ago
parent d422a805f6
commit d1c15f58c4

@ -36,7 +36,7 @@ router.post('/chat-process', auth, async (req, res) => {
}
})
router.post('/config', async (req, res) => {
router.post('/config', auth, async (req, res) => {
try {
const response = await chatConfig()
res.send(response)

Loading…
Cancel
Save