Add admin api feature list to the admin api

This commit is contained in:
Jonas Lochmann 2020-01-13 00:00:00 +00:00
parent f2c8a3043f
commit e636fe0d8e
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36

View file

@ -31,6 +31,10 @@ export const createAdminRouter = ({ database, websocket }: {
}) => { }) => {
const router = Router() const router = Router()
router.get('/', (_, res) => {
res.send('<html><body><a href="/admin/status">status</a><br><a href="/admin/status-message">Status message</a><br><a href="/admin/unlock-premium">unlock premium</a></body></html>')
})
router.get('/status', (_, res) => { router.get('/status', (_, res) => {
res.json({ res.json({
websocketClients: websocket.countConnections() websocketClients: websocket.countConnections()