perf: config 接口添加权限验证
This commit is contained in:
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…
Reference in New Issue