Skip to content

Commit

Permalink
fix: only root user get config (Close Chanzhaoyu#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin committed May 8, 2023
1 parent 5b70413 commit 1d0c3c6
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 @@ -445,7 +445,7 @@ router.post('/user-register', async (req, res) => {
}
})

router.post('/config', auth, async (req, res) => {
router.post('/config', rootAuth, async (req, res) => {
try {
const userId = req.headers.userId.toString()

Expand Down

0 comments on commit 1d0c3c6

Please sign in to comment.