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 { try {
const response = await chatConfig() const response = await chatConfig()
res.send(response) res.send(response)

Loading…
Cancel
Save