mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-03-09 14:37:58 +00:00
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…
x
Reference in New Issue
Block a user