Skip to content

Commit

Permalink
perf: config 接口添加权限验证
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanzhaoyu committed Mar 19, 2023
1 parent d422a80 commit d1c15f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d1c15f5

Please sign in to comment.