perf: config 接口添加权限验证

This commit is contained in:
ChenZhaoYu 2023-03-19 12:31:14 +08:00
parent d422a805f6
commit d1c15f58c4
1 changed files with 1 additions and 1 deletions

View File

@ -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)