Skip to content

Commit 1d0c3c6

Browse files
author
Kerwin
committed
fix: only root user get config (Close #120)
1 parent 5b70413 commit 1d0c3c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ router.post('/user-register', async (req, res) => {
445445
}
446446
})
447447

448-
router.post('/config', auth, async (req, res) => {
448+
router.post('/config', rootAuth, async (req, res) => {
449449
try {
450450
const userId = req.headers.userId.toString()
451451

0 commit comments

Comments
 (0)