mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 01:39:31 +02:00
Add admin api feature list to the admin api
This commit is contained in:
parent
f2c8a3043f
commit
e636fe0d8e
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ export const createAdminRouter = ({ database, websocket }: {
|
|||
}) => {
|
||||
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) => {
|
||||
res.json({
|
||||
websocketClients: websocket.countConnections()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue