Skip to content
This repository was archived by the owner on Jun 14, 2021. It is now read-only.

Commit ce6ecc9

Browse files
committed
chore: add endpoint for web
1 parent 76b08e4 commit ce6ecc9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/api/route/auth.js

+10
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,16 @@ router.get('/check', async (req, res) => {
123123
}
124124
})
125125

126+
router.get('/getStatus', async (req, res) => {
127+
res.json({
128+
code: 0,
129+
msg: 'Success',
130+
data: {
131+
allowSignup: config.get('system.allowSignup')
132+
}
133+
})
134+
})
135+
126136
router.all('/logout', (req, res) => {
127137
res.clearCookie('token')
128138
res.json({

0 commit comments

Comments
 (0)